summaryrefslogtreecommitdiff
path: root/gtk/gtkstatusbar.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-07-26 15:24:15 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2010-08-05 09:51:15 +0200
commit76267f9d0621c07b13e56f6ffd93e942111dfbcf (patch)
tree0cb86a247286b243d39f30c039f62b3e0cc608eb /gtk/gtkstatusbar.c
parentdcdb00adb4be64768583eb3f0d301a931d7694d4 (diff)
downloadgtk+-76267f9d0621c07b13e56f6ffd93e942111dfbcf.tar.gz
Add _gtk_box_get_children() internal function
https://bugzilla.gnome.org/show_bug.cgi?id=625300
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r--gtk/gtkstatusbar.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index f6972f99b0..ded06208c6 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -1034,13 +1034,14 @@ has_extra_children (GtkStatusbar *statusbar)
GtkPackType child_pack_type, frame_pack_type;
GtkWidget *child, *frame;
GList *l, *children;
+ gboolean retval = FALSE;
/* If the internal frame has been modified assume we have extra children */
if (gtk_bin_get_child (GTK_BIN (priv->frame)) != priv->label)
return TRUE;
frame = NULL;
- children = gtk_container_get_children (GTK_CONTAINER (statusbar));
+ children = _gtk_box_get_children (GTK_BOX (statusbar));
for (l = children; l; l = l->next)
{
frame = l->data;
@@ -1063,12 +1064,15 @@ has_extra_children (GtkStatusbar *statusbar)
NULL, NULL, NULL, &child_pack_type);
if (frame_pack_type == GTK_PACK_START || child_pack_type == GTK_PACK_END)
- return TRUE;
+ {
+ retval = TRUE;
+ break;
+ }
}
g_list_free (children);
- return FALSE;
+ return retval;
}
static void