aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@.gnome.org>2003-08-19 06:42:39 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-08-19 06:42:39 +0800
commit27b3a31636135db43034b5cbebb996e4b6d86db2 (patch)
treeb6f4e78bee4ef9ca5ba5382aa89607bdfe86162a /embed/mozilla
parent55ae859da0c35cc1cabbb68eb8bd343344bad3c9 (diff)
downloadgsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar
gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar.gz
gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar.bz2
gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar.lz
gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar.xz
gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.tar.zst
gsoc2013-epiphany-27b3a31636135db43034b5cbebb996e4b6d86db2.zip
Add activate api.
2003-08-19 Marco Pesenti Gritti <marco@.gnome.org> * embed/ephy-embed.c: (ephy_embed_activate): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed.cpp: Add activate api. * src/window-commands.c: (window_cmd_go_back), (window_cmd_go_up), (window_cmd_go_forward), (window_cmd_view_stop), (window_cmd_view_reload): Activate on navigation commands. It seem like a better beahvior and it avoid some mozilla focus craziness.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/mozilla-embed.cpp11
1 files changed, 11 insertions, 0 deletions
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;