aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
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 /src/ephy-window.c
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.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c11
1 files changed, 8 insertions, 3 deletions
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));
}