diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/ephy-find-toolbar.c | 7 |
2 files changed, 14 insertions, 1 deletions
@@ -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); + } } |