diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-07 14:28:43 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-02-07 14:28:43 +0000 |
commit | db41dc3dac1528afbc369de91a28d1ebd4cf028b (patch) | |
tree | f75e11a34984a2a5c5457c2bcf24147721dc0637 /riscos/history.c | |
parent | 3bfe5701c3316ccc832e5268dd2db73fd600ded8 (diff) | |
download | netsurf-db41dc3dac1528afbc369de91a28d1ebd4cf028b.tar.gz netsurf-db41dc3dac1528afbc369de91a28d1ebd4cf028b.tar.bz2 |
[project @ 2005-02-07 14:28:43 by rjw]
Initial work for global history (currently incomplete)
svn path=/import/netsurf/; revision=1497
Diffstat (limited to 'riscos/history.c')
-rw-r--r-- | riscos/history.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/riscos/history.c b/riscos/history.c index ebd4e7def..31595470b 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -283,10 +283,12 @@ void ro_gui_history_mode_change(void) /** * Open history window. + * + * \param pointer whether to open the window at the pointer */ void ro_gui_history_open(struct browser_window *bw, - struct history *history, int wx, int wy) + struct history *history, bool pointer) { bool done = false; unsigned int i, j, max_y = 0; @@ -353,12 +355,13 @@ void ro_gui_history_open(struct browser_window *bw, wimp_set_extent(history_window, &box); state.w = history_window; wimp_get_window_state(&state); - state.visible.x0 = wx - width / 2; - state.visible.y0 = wy - height / 2; - state.visible.x1 = wx + width / 2; - state.visible.y1 = wy + height / 2; - state.next = wimp_TOP; + state.visible.x0 = 0; + state.visible.y0 = 0; + state.visible.x1 = width; + state.visible.y1 = height; + state.next = wimp_HIDDEN; wimp_open_window((wimp_open *) &state); + ro_gui_dialog_open_persistant(bw->window->window, history_window, pointer); } |