aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-14 05:26:10 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-14 05:26:10 +0800
commit14b719a06d565edd38e3a94ffda615150be841af (patch)
tree82d002b1443d36b14c10de7847570c2a4423c19f
parentb0a5fd30502853b0498c55538e400c01287f4137 (diff)
downloadgsoc2013-epiphany-14b719a06d565edd38e3a94ffda615150be841af.tar
gsoc2013-epiphany-14b719a06d565edd38e3a94ffda615150be841af.tar.gz
gsoc2013-epiphany-14b719a06d565edd38e3a94ffda615150be841af.tar.bz2
gsoc2013-epiphany-14b719a06d565edd38e3a94ffda615150be841af.tar.lz
gsoc2013-epiphany-14b719a06d565edd38e3a94ffda615150be841af.tar.xz
gsoc2013-epiphany-14b719a06d565edd38e3a94ffda615150be841af.tar.zst
gsoc2013-epiphany-14b719a06d565edd38e3a94ffda615150be841af.zip
Fix yet another mem leak.
2003-06-13 Christian Persch <chpe@cvs.gnome.org> * src/ephy_window.c: (update_window_visibility): Fix yet another mem leak.
-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));
}