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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c
index 37ffe19a7..61db4fb74 100644
--- a/src/ephy-find-toolbar.c
+++ b/src/ephy-find-toolbar.c
@@ -591,5 +591,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);
+ }
}