aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c7
-rw-r--r--embed/ephy-embed.h3
-rw-r--r--embed/mozilla/mozilla-embed.cpp11
3 files changed, 21 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index f9bf0dc7b..48e9cdcf3 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -558,6 +558,13 @@ ephy_embed_find_next (EphyEmbed *embed,
}
gresult
+ephy_embed_activate (EphyEmbed *embed)
+{
+ EphyEmbedClass *klass = EPHY_EMBED_GET_CLASS (embed);
+ return klass->activate (embed);
+}
+
+gresult
ephy_embed_set_encoding (EphyEmbed *embed,
const char *encoding)
{
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index 27fe2e504..24006c039 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -260,6 +260,7 @@ struct EphyEmbedClass
gboolean wrap_around);
gresult (* find_next) (EphyEmbed *embed,
gboolean backwards);
+ gresult (* activate) (EphyEmbed *embed);
gresult (* print) (EphyEmbed *embed,
EmbedPrintInfo *info);
gresult (* print_preview_close) (EphyEmbed *embed);
@@ -390,6 +391,8 @@ gresult ephy_embed_find_next (EphyEmbed *embed,
gresult ephy_embed_set_encoding (EphyEmbed *embed,
const char *encoding);
+gresult ephy_embed_activate (EphyEmbed *embed);
+
/* Printing */
gresult ephy_embed_print (EphyEmbed *embed,
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 63c696d80..66695ef64 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -309,6 +309,16 @@ impl_find_next (EphyEmbed *embed,
}
static gresult
+impl_activate (EphyEmbed *embed)
+{
+ g_return_val_if_fail (IS_EPHY_EMBED (embed), G_FAILED);
+
+ gtk_widget_grab_focus (GTK_BIN (embed)->child);
+
+ return G_OK;
+}
+
+static gresult
impl_find_set_properties (EphyEmbed *embed,
char *search_string,
gboolean case_sensitive,
@@ -363,6 +373,7 @@ ephy_embed_init (EphyEmbedClass *embed_class)
embed_class->shistory_copy = impl_shistory_copy;
embed_class->get_security_level = impl_get_security_level;
embed_class->find_next = impl_find_next;
+ embed_class->activate = impl_activate;
embed_class->find_set_properties = impl_find_set_properties;
embed_class->set_encoding = impl_set_encoding;
embed_class->select_all = impl_select_all;