[Xfce4-commits] <midori:master> The findbar shouldn't be focused after hiding

Christian Dywan noreply at xfce.org
Fri May 27 23:08:01 CEST 2011


Updating branch refs/heads/master
         to b48817f04c204d2af5f8c7a9ad1481be01655e0e (commit)
       from 6fbea0b677f88a258a4933db514c8d3ce14a750f (commit)

commit b48817f04c204d2af5f8c7a9ad1481be01655e0e
Author: André Stösel <andre at stoesel.de>
Date:   Fri May 27 23:06:23 2011 +0200

    The findbar shouldn't be focused after hiding

 toolbars/midori-findbar.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/toolbars/midori-findbar.c b/toolbars/midori-findbar.c
index d8769c4..d448ce5 100644
--- a/toolbars/midori-findbar.c
+++ b/toolbars/midori-findbar.c
@@ -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



More information about the Xfce4-commits mailing list