Only focus findbar when repeatedly triggering it

It can be closed with Escape.
This commit is contained in:
Christian Dywan 2011-11-18 21:20:15 +01:00
parent 4c2fd067ff
commit bcc4373857

View file

@ -158,7 +158,7 @@ void
midori_findbar_invoke (MidoriFindbar* findbar) midori_findbar_invoke (MidoriFindbar* findbar)
{ {
if (gtk_widget_get_visible (GTK_WIDGET (findbar))) if (gtk_widget_get_visible (GTK_WIDGET (findbar)))
midori_findbar_done (findbar); gtk_widget_grab_focus (GTK_WIDGET (findbar->find_text));
else else
{ {
MidoriBrowser* browser = midori_browser_get_for_widget (findbar->find_text); MidoriBrowser* browser = midori_browser_get_for_widget (findbar->find_text);