diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-06-02 06:28:22 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:46 +0200 |
commit | 3a10216dd01c8d10df235b88c8942b2fda15689b (patch) | |
tree | 80df10196e365741a9dcb6a8c773c1e992e3e9fe /gtk/gtkstatusbar.c | |
parent | 009acc263e883923fd7c528c401f9d39756788aa (diff) | |
download | gtk+-3a10216dd01c8d10df235b88c8942b2fda15689b.tar.gz |
Use accessor functions to acces GtkContainer
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r-- | gtk/gtkstatusbar.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |