aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/ephy-window.c11
2 files changed, 11 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 38b35dc5a..631fae3b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,8 @@
-2003-06-13 Marco Pesenti Gritti <marco@it.gnome.org>
+2003-06-13 Christian Persch <chpe@cvs.gnome.org>
- * embed/ephy-embed-prefs.h:
+ * src/ephy_window.c: (update_window_visibility):
- Typo
+ Fix yet another mem leak.
2003-06-13 Christian Persch <chpe@cvs.gnome.org>
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 6d30ad8bd..a0250babf 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1523,6 +1523,7 @@ static void
update_window_visibility (EphyWindow *window)
{
GList *l, *tabs;
+ gboolean visible = FALSE;
tabs = ephy_window_get_tabs (window);
for (l = tabs; l != NULL; l = l->next)
@@ -1532,13 +1533,17 @@ update_window_visibility (EphyWindow *window)
if (ephy_tab_get_visibility (tab))
{
- gtk_widget_show (GTK_WIDGET(window));
- return;
+ visible = TRUE;
+ break;
}
}
g_list_free (tabs);
- if (GTK_WIDGET_VISIBLE (GTK_WIDGET (window)))
+ if (visible)
+ {
+ gtk_widget_show (GTK_WIDGET(window));
+ }
+ else
{
gtk_widget_hide (GTK_WIDGET (window));
}