aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-03-12 04:32:48 +0800
committerChristian Persch <chpe@src.gnome.org>2005-03-12 04:32:48 +0800
commitf7da5a6985b9e90107553afd06591213d422f337 (patch)
tree7258464f38ec59ab18e1f81d8b583000e66d10df
parent3a53d6afe99eed8864872ff0ae91a11c2b87d5fe (diff)
downloadgsoc2013-epiphany-f7da5a6985b9e90107553afd06591213d422f337.tar
gsoc2013-epiphany-f7da5a6985b9e90107553afd06591213d422f337.tar.gz
gsoc2013-epiphany-f7da5a6985b9e90107553afd06591213d422f337.tar.bz2
gsoc2013-epiphany-f7da5a6985b9e90107553afd06591213d422f337.tar.lz
gsoc2013-epiphany-f7da5a6985b9e90107553afd06591213d422f337.tar.xz
gsoc2013-epiphany-f7da5a6985b9e90107553afd06591213d422f337.tar.zst
gsoc2013-epiphany-f7da5a6985b9e90107553afd06591213d422f337.zip
Don't activate the location entry if it's hidden. Fixes bug #169956.
2005-03-11 Christian Persch <chpe@cvs.gnome.org> * src/ephy-toolbar.c: (ephy_toolbar_activate_location): Don't activate the location entry if it's hidden. Fixes bug #169956.
-rw-r--r--ChangeLog6
-rwxr-xr-xsrc/ephy-toolbar.c11
2 files changed, 10 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 37413aa8f..23f740752 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-03-11 Christian Persch <chpe@cvs.gnome.org>
+ * src/ephy-toolbar.c: (ephy_toolbar_activate_location):
+
+ Don't activate the location entry if it's hidden. Fixes bug #169956.
+
+2005-03-11 Christian Persch <chpe@cvs.gnome.org>
+
* data/default-prefs-toolkit.js:
Disable automatic image resizing on toolkit too.
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 41368a6c4..e9468e481 100755
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -448,13 +448,10 @@ ephy_toolbar_activate_location (EphyToolbar *toolbar)
entry = GTK_WIDGET (proxies->data);
}
- if (entry == NULL)
- {
- /* happens when the user has removed the location entry from
- * the toolbars.
- */
- return;
- }
+ /* happens when the user has removed the location entry from
+ * the toolbars, or when it's overflown
+ */
+ if (entry == NULL || !GTK_WIDGET_REALIZED (entry)) return;
g_object_get (G_OBJECT (toolbar), "visible", &visible, NULL);
if (visible == FALSE)