diff options
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | src/ephy-find-toolbar.c | 13 |
2 files changed, 20 insertions, 3 deletions
@@ -1,3 +1,13 @@ +2006-05-11 Wouter Bolsterlee <uws+gnome@xs4all.nl> + + * src/ephy-find-toolbar.c: (ephy_find_toolbar_find_next), + (ephy_find_toolbar_find_previous), (ephy_find_toolbar_open): + + Display the find bar for "Find Next" and "Find Previous" + if it wasn't visible already. Entry focus is handlded + with care so that use cases like incremental search work + as expected. Fixes bug #333020. + 2006-05-11 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (entry_changed_cb), diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index d91df26ef..ab04e67bb 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -592,8 +592,12 @@ ephy_find_toolbar_find_next (EphyFindToolbar *toolbar) EphyEmbedFindResult result; result = ephy_embed_find_find_again (get_find (toolbar), TRUE); - set_status (toolbar, result); + + if (!GTK_WIDGET_VISIBLE(toolbar)) { + gtk_widget_show (GTK_WIDGET (toolbar)); + gtk_widget_grab_focus (GTK_WIDGET (toolbar)); + } } void @@ -602,8 +606,12 @@ ephy_find_toolbar_find_previous (EphyFindToolbar *toolbar) EphyEmbedFindResult result; result = ephy_embed_find_find_again (get_find (toolbar), FALSE); - set_status (toolbar, result); + + if (!GTK_WIDGET_VISIBLE(toolbar)) { + gtk_widget_show (GTK_WIDGET (toolbar)); + gtk_widget_grab_focus (GTK_WIDGET (toolbar)); + } } void @@ -631,7 +639,6 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar, } gtk_widget_show (GTK_WIDGET (toolbar)); - gtk_widget_grab_focus (GTK_WIDGET (toolbar)); } |