From 040ddf077ca5f3b9400049c866daa2683ae5aa86 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 https://bugzilla.gnome.org/show_bug.cgi?id=595995 --- src/st/st-box-layout.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c index 2872eca7b..85fff5df7 100644 --- a/src/st/st-box-layout.c +++ b/src/st/st-box-layout.c @@ -638,6 +638,10 @@ st_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,