]> spindle.queued.net Git - midori/commitdiff
The findbar shouldn't be focused after hiding
authorAndré Stösel <andre@stoesel.de>
Fri, 27 May 2011 21:06:23 +0000 (23:06 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 27 May 2011 21:06:23 +0000 (23:06 +0200)
toolbars/midori-findbar.c

index d8769c4659cce8a76c36fe4602cbd38b092894c9..d448ce5bb0dae571e625eca120c1774b3df1737e 100644 (file)
@@ -147,9 +147,8 @@ midori_findbar_invoke (MidoriFindbar* findbar)
         if ((text = midori_view_get_selected_text (MIDORI_VIEW (view))))
             gtk_entry_set_text (GTK_ENTRY (findbar->find_text), text);
         gtk_widget_show (GTK_WIDGET (findbar));
+        gtk_widget_grab_focus (GTK_WIDGET (findbar->find_text));
     }
-
-    gtk_widget_grab_focus (GTK_WIDGET (findbar->find_text));
 }
 
 static void