aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)