flow-layout: Use the natural size

Fix a copy-and-paste thinko where the cell size was computed using the
minimum size instead of the natural size. For actors with a minimum size
of zero, like Textures, this implied always a zero allocation.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Bastian Winkler 2009-12-03 15:38:05 +00:00 committed by Emmanuele Bassi
parent 7f58c14dcd
commit 18860eb16f

View File

@ -554,7 +554,7 @@ clutter_flow_layout_allocate (ClutterLayoutManager *manager,
clutter_actor_get_preferred_width (child, item_height, clutter_actor_get_preferred_width (child, item_height,
&child_min, &child_min,
&child_natural); &child_natural);
item_width = MIN (item_width, child_min); item_width = MIN (item_width, child_natural);
clutter_actor_get_preferred_height (child, item_width, clutter_actor_get_preferred_height (child, item_width,
&child_min, &child_min,
@ -593,7 +593,7 @@ clutter_flow_layout_allocate (ClutterLayoutManager *manager,
clutter_actor_get_preferred_width (child, item_height, clutter_actor_get_preferred_width (child, item_height,
&child_min, &child_min,
&child_natural); &child_natural);
item_width = MIN (item_width, child_min); item_width = MIN (item_width, child_natural);
clutter_actor_get_preferred_height (child, item_width, clutter_actor_get_preferred_height (child, item_width,
&child_min, &child_min,