epiphany r7900 - trunk/embed/mozilla



Author: cosimoc
Date: Thu Jan 31 18:53:57 2008
New Revision: 7900
URL: http://svn.gnome.org/viewvc/epiphany?rev=7900&view=rev

Log:
Fix keyboard focus remaining in the location entry after entering
the address. Bug #513345.


Modified:
   trunk/embed/mozilla/mozilla-embed.cpp

Modified: trunk/embed/mozilla/mozilla-embed.cpp
==============================================================================
--- trunk/embed/mozilla/mozilla-embed.cpp	(original)
+++ trunk/embed/mozilla/mozilla-embed.cpp	Thu Jan 31 18:53:57 2008
@@ -217,7 +217,10 @@
 {
 	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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]