aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2008-02-01 02:53:57 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2008-02-01 02:53:57 +0800
commitec3b5390984fb1b5ca976af0f95b1c9893aacf60 (patch)
treeb068cda7952107f9e65878847bcf5ba9a66a326b
parente866a8847fcce0f6bec94c79ab3c90c462f06993 (diff)
downloadgsoc2013-epiphany-ec3b5390984fb1b5ca976af0f95b1c9893aacf60.tar
gsoc2013-epiphany-ec3b5390984fb1b5ca976af0f95b1c9893aacf60.tar.gz
gsoc2013-epiphany-ec3b5390984fb1b5ca976af0f95b1c9893aacf60.tar.bz2
gsoc2013-epiphany-ec3b5390984fb1b5ca976af0f95b1c9893aacf60.tar.lz
gsoc2013-epiphany-ec3b5390984fb1b5ca976af0f95b1c9893aacf60.tar.xz
gsoc2013-epiphany-ec3b5390984fb1b5ca976af0f95b1c9893aacf60.tar.zst
gsoc2013-epiphany-ec3b5390984fb1b5ca976af0f95b1c9893aacf60.zip
Fix keyboard focus remaining in the location entry after entering
the address. Bug #513345. svn path=/trunk/; revision=7900
-rw-r--r--embed/mozilla/mozilla-embed.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index d8ffc136b..f5f600934 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -217,7 +217,10 @@ mozilla_embed_grab_focus (GtkWidget *widget)
{
GtkWidget *child;
- child = gtk_bin_get_child (GTK_BIN (widget));
+ /* What we want to focus here is the MozContainer inside the
+ * GtkMozEmbed, because the GtkMozEmbed itself does not gain focus.
+ */
+ child = gtk_bin_get_child (GTK_BIN (MOZILLA_EMBED (widget)->priv->moz_embed));
if (child && GTK_WIDGET_REALIZED (child))
gtk_widget_grab_focus (child);