diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-03-26 21:09:25 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-03-26 21:09:25 +0000 |
commit | 932765df961ce1a46a87bececfca78d2e157d1fc (patch) | |
tree | 80c7dbbc0736b9c772a12372f3e00ab4489a1fe6 /riscos/window.c | |
parent | 933c642019fd1c2bbb0dc4159b8cfc75a67ebaf4 (diff) | |
download | netsurf-932765df961ce1a46a87bececfca78d2e157d1fc.tar.gz netsurf-932765df961ce1a46a87bececfca78d2e157d1fc.tar.bz2 |
Remove collusion between window, menus and search code in order to clear
search selection state - this should happen automagically through
wimp_event callbacks now.
Also tidy search.c so I can read it better ;)
svn path=/trunk/netsurf/; revision=3227
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/riscos/window.c b/riscos/window.c index 4e4f162cb..7195064a0 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -518,18 +518,18 @@ void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1) */ void gui_window_redraw_window(struct gui_window *g) { - wimp_window_info info; - os_error *error; + wimp_window_info info; + os_error *error; assert(g); info.w = g->window; - error = xwimp_get_window_info_header_only(&info); - if (error) { - LOG(("xwimp_get_window_info_header_only: 0x%x: %s", - error->errnum, error->errmess)); - warn_user("WimpError", error->errmess); - return; - } + error = xwimp_get_window_info_header_only(&info); + if (error) { + LOG(("xwimp_get_window_info_header_only: 0x%x: %s", + error->errnum, error->errmess)); + warn_user("WimpError", error->errmess); + return; + } error = xwimp_force_redraw(g->window, info.extent.x0, info.extent.y0, info.extent.x1, info.extent.y1); if (error) { @@ -787,7 +787,7 @@ void gui_window_position_frame(struct gui_window *g, int x0, int y0, int x1, int bw->x1 = x1 = parent->x0 + x1; bw->y1 = y1 = parent->y0 + y1; } - + /* only scale iframe locations */ if (bw->browser_window_type == BROWSER_WINDOW_IFRAME) scale = g->option.scale; @@ -1137,8 +1137,6 @@ void gui_window_remove_caret(struct gui_window *g) void gui_window_new_content(struct gui_window *g) { - if (search_current_window == g) - ro_gui_search_end(dialog_search); ro_gui_menu_objects_moved(); ro_gui_prepare_navigate(g); ro_gui_dialog_close_persistent(g->window); @@ -1395,7 +1393,7 @@ void gui_window_set_scale(struct gui_window *g, float scale) ro_gui_dialog_update_zoom(g); if (!content_get_reformat(c)) { browser_window_update(g->bw, false); - } else { + } else { g->reformat_pending = true; gui_reformat_pending = true; } @@ -1735,7 +1733,7 @@ void gui_window_set_extent(struct gui_window *g, int width, int height) height -= toolbar_height; } } - + /* the top-level framed window is a total pain. to get it to maximise to the * top of the screen we need to fake it having a suitably large extent */ if (g->bw->children && (g->bw->browser_window_type == BROWSER_WINDOW_NORMAL)) { |