]> spindle.queued.net Git - midori/commitdiff
Only focus findbar when repeatedly triggering it
authorChristian Dywan <christian@twotoasts.de>
Fri, 18 Nov 2011 20:20:15 +0000 (21:20 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 18 Nov 2011 20:20:15 +0000 (21:20 +0100)
It can be closed with Escape.

toolbars/midori-findbar.c

index 3aa9191cdc895379f5b0ac6cff97b7be3822e30d..548b546da1b70fafb3b6b5981870f2ce676b2a73 100644 (file)
@@ -158,7 +158,7 @@ void
 midori_findbar_invoke (MidoriFindbar* findbar)
 {
     if (gtk_widget_get_visible (GTK_WIDGET (findbar)))
-        midori_findbar_done (findbar);
+        gtk_widget_grab_focus (GTK_WIDGET (findbar->find_text));
     else
     {
         MidoriBrowser* browser = midori_browser_get_for_widget (findbar->find_text);