aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-find-toolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r--src/ephy-find-toolbar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index c5f98f142..40cdeb702 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -114,6 +114,8 @@ tab_content_changed_cb (EphyEmbed *embed,
set_controls (toolbar, TRUE, TRUE);
}
+#ifdef HAVE_TYPEAHEADFIND
+
/* Cut and paste from gtkwindow.c */
static void
send_focus_change (GtkWidget *widget,
@@ -216,6 +218,8 @@ tab_dom_key_press_cb (EphyEmbed *embed,
return (retval && oldhash != newhash) || priv->preedit_changed;
}
+#endif /* HAVE_TYPEAHEADFIND */
+
static void
find_next_cb (EphyFindToolbar *toolbar)
{
@@ -530,9 +534,11 @@ ephy_find_toolbar_set_embed (EphyFindToolbar *toolbar,
g_signal_connect_object (embed, "ge-content-change",
G_CALLBACK (tab_content_changed_cb),
toolbar, G_CONNECT_AFTER);
+#ifdef HAVE_TYPEAHEADFIND
g_signal_connect_object (embed, "dom-key-press",
G_CALLBACK (tab_dom_key_press_cb),
toolbar, 0);
+#endif
if (priv->find != NULL)
{
@@ -577,7 +583,9 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar,
gtk_widget_show (GTK_WIDGET (toolbar));
ephy_embed_activate (priv->embed);
+#ifdef HAVE_TYPEAHEADFIND
send_focus_change (priv->entry, TRUE);
+#endif
}
void