aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 35b59b24a..ba2a5e601 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -214,7 +214,9 @@ entry_changed_cb (GtkEntry *entry,
EphyFindToolbarPrivate *priv = toolbar->priv;
const char *text;
char *lowercase;
+#ifdef HAVE_TYPEAHEADFIND
EphyEmbedFindResult result;
+#endif
gboolean found = TRUE, case_sensitive;
text = gtk_entry_get_text (GTK_ENTRY (priv->entry));
@@ -670,5 +672,8 @@ ephy_find_toolbar_close (EphyFindToolbar *toolbar)
void
ephy_find_toolbar_request_close (EphyFindToolbar *toolbar)
{
- g_signal_emit (toolbar, signals[CLOSE], 0);
+ if (GTK_WIDGET_VISIBLE (GTK_WIDGET (toolbar)))
+ {
+ g_signal_emit (toolbar, signals[CLOSE], 0);
+ }
}