diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2009-08-28 04:02:45 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2009-08-28 21:11:27 +0800 |
commit | 7eafc70b2158944f8d783a8e283547153979f015 (patch) | |
tree | 34cc51eecad37a734735cbb80908d61e61052248 /src/ephy-find-toolbar.c | |
parent | 4b06e10f0870528a180f614375e4de158ddb8751 (diff) | |
download | gsoc2013-epiphany-7eafc70b2158944f8d783a8e283547153979f015.tar gsoc2013-epiphany-7eafc70b2158944f8d783a8e283547153979f015.tar.gz gsoc2013-epiphany-7eafc70b2158944f8d783a8e283547153979f015.tar.bz2 gsoc2013-epiphany-7eafc70b2158944f8d783a8e283547153979f015.tar.lz gsoc2013-epiphany-7eafc70b2158944f8d783a8e283547153979f015.tar.xz gsoc2013-epiphany-7eafc70b2158944f8d783a8e283547153979f015.tar.zst gsoc2013-epiphany-7eafc70b2158944f8d783a8e283547153979f015.zip |
Reimplement "search keys" structure for the WebKit backend
This allows Epiphany itself, and extensions to treat keys that are not
handled by the WebView for in-page search purposes.
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r-- | src/ephy-find-toolbar.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 8cf490e78..bc8a46563 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -178,7 +178,6 @@ clear_status (EphyFindToolbar *toolbar) priv->links_only ? _("Find links:") : _("Find:")); } -#if 0 /* Code adapted from gtktreeview.c:gtk_tree_view_key_press() and * gtk_tree_view_real_start_interactive_seach() */ @@ -212,7 +211,6 @@ tab_search_key_press_cb (EphyEmbed *embed, return FALSE; } -#endif static void find_next_cb (EphyFindToolbar *toolbar) @@ -737,10 +735,9 @@ ephy_find_toolbar_set_embed (EphyFindToolbar *toolbar, if (priv->web_view != NULL) { - /* - g_signal_handlers_disconnect_matched (embed, G_SIGNAL_MATCH_DATA, - 0, 0, NULL, NULL, toolbar); - */ + g_signal_handlers_disconnect_matched (EPHY_WEB_VIEW (web_view), + G_SIGNAL_MATCH_DATA, + 0, 0, NULL, NULL, toolbar); } priv->web_view = web_view; @@ -748,11 +745,9 @@ ephy_find_toolbar_set_embed (EphyFindToolbar *toolbar, { clear_status (toolbar); - /* FIXME: this is never emitted - g_signal_connect_object (embed, "ge-search-key-press", + g_signal_connect_object (EPHY_WEB_VIEW (web_view), "search-key-press", G_CALLBACK (tab_search_key_press_cb), toolbar, 0); - */ } } |