From d2b98701be200250f128938d4ff21821a06d2be1 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Mon, 21 Sep 2009 17:56:46 -0400 Subject: [PATCH] Don't count not-visible children among expand children When counting how many children we should divide extra space among, don't count not-visible children. http://bugzilla.moblin.org/show_bug.cgi?id=6310 --- src/nbtk/nbtk-box-layout.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nbtk/nbtk-box-layout.c b/src/nbtk/nbtk-box-layout.c index 5957e350d..87e0b9442 100644 --- a/src/nbtk/nbtk-box-layout.c +++ b/src/nbtk/nbtk-box-layout.c @@ -623,6 +623,10 @@ nbtk_box_layout_allocate (ClutterActor *actor, for (l = priv->children; l; l = l->next) { gboolean expand; + + if (!CLUTTER_ACTOR_IS_VISIBLE (l->data)) + continue; + clutter_container_child_get ((ClutterContainer *) actor, (ClutterActor*) l->data, "expand", &expand,