GtkWidget* widget,
const gchar** icon_name);
+static void
+_midori_browser_find_done (MidoriBrowser* browser);
+
static GtkAction*
_action_by_name (MidoriBrowser* browser,
const gchar* name)
_action_find_activate (GtkAction* action,
MidoriBrowser* browser)
{
- if (!GTK_WIDGET_VISIBLE (browser->find))
+ if (GTK_WIDGET_VISIBLE (browser->find))
+ _midori_browser_find_done (browser);
+ else
{
GtkWidget* view;
const gchar* text;
GdkEventFocus* event,
MidoriBrowser* browser)
{
- if (browser->find_typing)
- _midori_browser_find_done (browser);
+ _midori_browser_find_done (browser);
return FALSE;
}