From 3a10216dd01c8d10df235b88c8942b2fda15689b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 2 Jun 2010 06:28:22 +0200 Subject: Use accessor functions to acces GtkContainer --- gtk/gtkstatusbar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gtk/gtkstatusbar.c') diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index 0ee091d870..9ef872735c 100644 --- a/gtk/gtkstatusbar.c +++ b/gtk/gtkstatusbar.c @@ -977,7 +977,7 @@ gtk_statusbar_size_request (GtkWidget *widget, static gboolean has_extra_children (GtkStatusbar *statusbar) { - GList *l; + GList *l, *children; GtkBoxChild *child, *frame; /* If the internal frame has been modified assume we have extra children */ @@ -985,7 +985,8 @@ has_extra_children (GtkStatusbar *statusbar) return TRUE; frame = NULL; - for (l = gtk_container_get_children (GTK_CONTAINER (statusbar)); l; l = l->next) + children = gtk_container_get_children (GTK_CONTAINER (statusbar)); + for (l = children; l; l = l->next) { frame = l->data; @@ -1004,6 +1005,8 @@ has_extra_children (GtkStatusbar *statusbar) return TRUE; } + g_list_free (children); + return FALSE; } -- cgit v1.2.1