aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-find-toolbar.c
diff options
context:
space:
mode:
authorCrispin Flowerday <gnome@flowerday.cx>2005-12-06 07:21:05 +0800
committerCrispin Flowerday <crispin@src.gnome.org>2005-12-06 07:21:05 +0800
commit2d52ce5068da8edb865c02fb2b905920d7f1056b (patch)
treedd6947be746cdd87580ab4cf107d448ed5c609db /src/ephy-find-toolbar.c
parent868e8cd543052eb6ad0c6a1642914230ca88b6cb (diff)
downloadgsoc2013-epiphany-2d52ce5068da8edb865c02fb2b905920d7f1056b.tar
gsoc2013-epiphany-2d52ce5068da8edb865c02fb2b905920d7f1056b.tar.gz
gsoc2013-epiphany-2d52ce5068da8edb865c02fb2b905920d7f1056b.tar.bz2
gsoc2013-epiphany-2d52ce5068da8edb865c02fb2b905920d7f1056b.tar.lz
gsoc2013-epiphany-2d52ce5068da8edb865c02fb2b905920d7f1056b.tar.xz
gsoc2013-epiphany-2d52ce5068da8edb865c02fb2b905920d7f1056b.tar.zst
gsoc2013-epiphany-2d52ce5068da8edb865c02fb2b905920d7f1056b.zip
Fix a compile warning, and don't bother requesting a close if the find bar
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
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 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);
+ }
}