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
This commit is contained in:
Owen W. Taylor 2009-09-21 17:56:46 -04:00
parent faeda5dc8b
commit d2b98701be

View File

@ -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,