aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/ephy-find-toolbar.c7
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 288ce3d39..4d80028d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-12-05 Crispin Flowerday <gnome@flowerday.cx>
+
+ * src/ephy-find-toolbar.c: (entry_changed_cb),
+ (ephy_find_toolbar_request_close):
+
+ Fix a compile warning, and don't bother requesting a close
+ if the find bar is already closed
+
2005-12-05 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-tabs-menu.c: (tab_set_action_accelerator):
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);
+ }
}