aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-find-toolbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-09 23:57:16 +0800
committerChristian Persch <chpe@src.gnome.org>2005-07-09 23:57:16 +0800
commit7274cb593c20c9bc973673c0767693c9cf3023bb (patch)
treed3c539fbcc7e2d9aa78ab40b1aef5179597614bc /src/ephy-find-toolbar.c
parent3b390cf6bfc3249ea6af8736e99315e614ea8ef8 (diff)
downloadgsoc2013-epiphany-7274cb593c20c9bc973673c0767693c9cf3023bb.tar.gz
gsoc2013-epiphany-7274cb593c20c9bc973673c0767693c9cf3023bb.tar.zst
gsoc2013-epiphany-7274cb593c20c9bc973673c0767693c9cf3023bb.zip
Don't focus the embed on close on !typeaheadfind, since it's a crash.
2005-07-09 Christian Persch <chpe@cvs.gnome.org> * src/ephy-find-toolbar.c: (ephy_find_toolbar_close): Don't focus the embed on close on !typeaheadfind, since it's a crash. Fixes bug #307675.
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r--src/ephy-find-toolbar.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index 0805c31d2..84ce8ed4d 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -663,10 +663,13 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar,
}
gtk_widget_show (GTK_WIDGET (toolbar));
- ephy_embed_activate (priv->embed);
#ifdef HAVE_TYPEAHEADFIND
+ ephy_embed_activate (priv->embed);
+
send_focus_change (priv->entry, TRUE);
+#else
+ gtk_widget_grab_focus (GTK_WIDGET (toolbar));
#endif
}
@@ -681,5 +684,7 @@ ephy_find_toolbar_close (EphyFindToolbar *toolbar)
/* first unset explicit_focus, else we get infinite recursion */
priv->explicit_focus = FALSE;
+#ifndef HAVE_TYPEAHEADFIND
ephy_embed_activate (priv->embed);
+#endif
}