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

View File

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