diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-06-05 04:16:24 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-06-05 04:16:24 +0800 |
commit | 7144cfbeda560ee9dcf8522574defede4df18f98 (patch) | |
tree | ef967eef1223ba6311f354d93f615a98d82b1cb4 /src | |
parent | 139a550279cc3289a426ccc9160605ec46955c38 (diff) | |
download | gsoc2013-epiphany-7144cfbeda560ee9dcf8522574defede4df18f98.tar gsoc2013-epiphany-7144cfbeda560ee9dcf8522574defede4df18f98.tar.gz gsoc2013-epiphany-7144cfbeda560ee9dcf8522574defede4df18f98.tar.bz2 gsoc2013-epiphany-7144cfbeda560ee9dcf8522574defede4df18f98.tar.lz gsoc2013-epiphany-7144cfbeda560ee9dcf8522574defede4df18f98.tar.xz gsoc2013-epiphany-7144cfbeda560ee9dcf8522574defede4df18f98.tar.zst gsoc2013-epiphany-7144cfbeda560ee9dcf8522574defede4df18f98.zip |
Close find bar on mouse click in the embed.
2005-06-04 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-find-toolbar.c: (tab_dom_mouse_click_cb),
(ephy_find_toolbar_set_embed):
Close find bar on mouse click in the embed.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-find-toolbar.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 041a4f85c..0805c31d2 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -214,6 +214,21 @@ tab_search_key_press_cb (EphyEmbed *embed, return retval && (oldhash != newhash || priv->preedit_changed) && !priv->activated; } +static gboolean +tab_dom_mouse_click_cb (EphyEmbed *embed, + gpointer event, + EphyFindToolbar *toolbar) +{ + EphyFindToolbarPrivate *priv = toolbar->priv; + + if (!priv->explicit_focus) + { + ephy_find_toolbar_close (toolbar); + } + + return FALSE; +} + #endif /* HAVE_TYPEAHEADFIND */ static void @@ -598,6 +613,9 @@ ephy_find_toolbar_set_embed (EphyFindToolbar *toolbar, g_signal_connect_object (embed, "ge-search-key-press", G_CALLBACK (tab_search_key_press_cb), toolbar, 0); + g_signal_connect_object (embed, "dom-mouse-click", + G_CALLBACK (tab_dom_mouse_click_cb), + toolbar, 0); #endif if (priv->find != NULL) |