The findbar shouldn't be focused after hiding

This commit is contained in:
André Stösel 2011-05-27 23:06:23 +02:00 committed by Christian Dywan
parent 6fbea0b677
commit b48817f04c

View file

@ -147,10 +147,9 @@ midori_findbar_invoke (MidoriFindbar* findbar)
if ((text = midori_view_get_selected_text (MIDORI_VIEW (view)))) if ((text = midori_view_get_selected_text (MIDORI_VIEW (view))))
gtk_entry_set_text (GTK_ENTRY (findbar->find_text), text); gtk_entry_set_text (GTK_ENTRY (findbar->find_text), text);
gtk_widget_show (GTK_WIDGET (findbar)); 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 static void
midori_findbar_next_activate_cb (GtkWidget* entry, midori_findbar_next_activate_cb (GtkWidget* entry,