From 5ee23a2c600d1cc951d185d283c9c0b5565b5991 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 11 Mar 2005 22:12:10 +0000 Subject: Revert patch from bug #169956, it's not correct. 2005-03-11 Christian Persch * src/ephy-toolbar.c: (ephy_toolbar_activate_location): Revert patch from bug #169956, it's not correct. * src/ephy-window.c: (sync_chromes_visibility): Fix a crash on window close with active toolbar activation. --- src/ephy-toolbar.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/ephy-toolbar.c') diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c index 958ef9203..41368a6c4 100755 --- a/src/ephy-toolbar.c +++ b/src/ephy-toolbar.c @@ -448,12 +448,13 @@ ephy_toolbar_activate_location (EphyToolbar *toolbar) entry = GTK_WIDGET (proxies->data); } - /* happens when the user has removed the location entry from - * the toolbars, or when it's overflown - * FIXME: if gtkmozembed focus is ever fixed, we want to correct this, - * since then we want to activate the toolbar even if it's hidden. - */ - if (entry == NULL || !GTK_WIDGET_REALIZED (entry)) return; + if (entry == NULL) + { + /* happens when the user has removed the location entry from + * the toolbars. + */ + return; + } g_object_get (G_OBJECT (toolbar), "visible", &visible, NULL); if (visible == FALSE) -- cgit v1.2.3