aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-find-toolbar.c13
1 files changed, 10 insertions, 3 deletions
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));
}