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/menus.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/menus.c')
-rw-r--r-- | riscos/menus.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/riscos/menus.c b/riscos/menus.c index 25d0df3b3..6650bb356 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -110,8 +110,6 @@ static bool ro_gui_menu_translate(struct menu_definition *menu); (wimp_COLOUR_BLACK << wimp_ICON_FG_COLOUR_SHIFT) | \ (wimp_COLOUR_WHITE << wimp_ICON_BG_COLOUR_SHIFT)) -/** Whether the search box was opened as a sub-menu */ -static bool ro_gui_menu_search_window_menu; /** The currently defined menus to perform actions for */ static struct menu_definition *ro_gui_menu_definitions; /** The current menu being worked with (may not be open) */ @@ -478,7 +476,6 @@ void ro_gui_menu_create(wimp_menu *menu, int x, int y, wimp_w w) { current_menu = menu; current_menu_window = w; current_menu_icon = -1; - ro_gui_menu_search_window_menu = false; /* prepare the menu state */ if (menu == url_suggest_menu) { @@ -581,7 +578,6 @@ void ro_gui_menu_closed(bool cleanup) { } } - ro_gui_menu_search_window_menu = false; current_menu_window = NULL; current_menu_icon = NULL; current_menu_open = false; @@ -1585,7 +1581,6 @@ bool ro_gui_menu_handle_action(wimp_w owner, menu_action action, if (!c || (c->type != CONTENT_HTML && c->type != CONTENT_TEXTPLAIN)) return false; ro_gui_menu_prepare_action(owner, action, true); - ro_gui_menu_search_window_menu = false; ro_gui_dialog_open_persistent(g->window, dialog_search, windows_at_pointer); return true; @@ -2041,7 +2036,6 @@ void ro_gui_menu_prepare_action(wimp_w owner, menu_action action, ro_gui_menu_set_entry_shaded(current_menu, action, result); if ((!result) && (windows)) { - ro_gui_menu_search_window_menu = true; ro_gui_search_prepare(g); } if ((t) && (!t->editor) && |