aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-find.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-16 06:22:31 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-16 06:22:31 +0800
commit0cba580858576aba1d4f2b4480e91dc3570c8d62 (patch)
tree43678464382a6fe9f188a82f58cb5054d479feac /embed/ephy-embed-find.c
parent02250ba19947aab8a099d2890649768e90ff3009 (diff)
downloadgsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar
gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar.gz
gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar.bz2
gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar.lz
gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar.xz
gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.tar.zst
gsoc2013-epiphany-0cba580858576aba1d4f2b4480e91dc3570c8d62.zip
Activate the found link with a faked keypress event.
2005-08-16 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-find.c: (ephy_embed_find_activate_link): * embed/ephy-embed-find.h: * embed/mozilla/EphyFind.cpp: * embed/mozilla/EphyFind.h: * embed/mozilla/mozilla-embed-find.cpp: Activate the found link with a faked keypress event. * src/ephy-find-toolbar.c: (tab_search_key_press_cb), (entry_key_press_event_cb), (entry_activate_cb), (ephy_find_toolbar_set_embed), (ephy_find_toolbar_open), (ephy_find_toolbar_close): On enter, activate the found link instead of finding the next occurrence. Always really give focus to the find bar, instead of faking keypresses in the find bar entry while focusing the embed. Fixes bug #307216, bug #311985, bug #312419.
Diffstat (limited to 'embed/ephy-embed-find.c')
-rw-r--r--embed/ephy-embed-find.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/embed/ephy-embed-find.c b/embed/ephy-embed-find.c
index 596c0b8bc..f5ddb664e 100644
--- a/embed/ephy-embed-find.c
+++ b/embed/ephy-embed-find.c
@@ -70,6 +70,21 @@ ephy_embed_find_find_again (EphyEmbedFind *find,
return iface->find_again (find, forward);
}
+/**
+ * ephy_embed_find_activate_link:
+ * @embed: an #EphyEmbedFind
+ * @mask:
+ *
+ * Activates the currently focused link, if there is any.
+ **/
+gboolean
+ephy_embed_find_activate_link (EphyEmbedFind *find,
+ GdkModifierType mask)
+{
+ EphyEmbedFindIface *iface = EPHY_EMBED_FIND_GET_IFACE (find);
+ return iface->activate_link (find, mask);
+}
+
GType
ephy_embed_find_get_type (void)
{