summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <florian.muellner@gmail.com>2013-07-06 02:11:42 +0200
committerEmmanuele Bassi <ebassi@gnome.org>2013-11-20 23:17:37 +0000
commit0c5dbf375bd2294840167659c22c90bbedf00d5e (patch)
tree0dcb919107f148c8e18ffa32c17d741d258f2956
parentd877b17d5c71b977af227e29b7a58816ed523af0 (diff)
downloadclutter-0c5dbf375bd2294840167659c22c90bbedf00d5e.tar.gz
box-layout: Fix (legacy) expand/fill properties
Whether a child should receive extra space should be determined by the expand property, not [xy]_fill (which just determine how additional space should be used). The behavior is already correct when using the ClutterActor:[xy]_expand properties, but needs fixing for the corresponding ClutterBoxLayoutChild property. https://bugzilla.gnome.org/show_bug.cgi?id=703809 (cherry picked from commit 8e850ff3e4f02d37ec7ecc272eea540ffd29dbcf) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
-rw-r--r--clutter/clutter-box-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter/clutter-box-layout.c b/clutter/clutter-box-layout.c
index f7af4efa5..f45180a4a 100644
--- a/clutter/clutter-box-layout.c
+++ b/clutter/clutter-box-layout.c
@@ -1166,7 +1166,7 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout,
if (priv->orientation == CLUTTER_ORIENTATION_VERTICAL)
{
if (clutter_actor_needs_expand (child, priv->orientation) ||
- box_child->y_fill)
+ box_child->expand)
{
child_allocation.y1 = y;
child_allocation.y2 = child_allocation.y1 + MAX (1.0, child_size);
@@ -1192,7 +1192,7 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout,
else /* CLUTTER_ORIENTATION_HORIZONTAL */
{
if (clutter_actor_needs_expand (child, priv->orientation) ||
- box_child->x_fill)
+ box_child->expand)
{
child_allocation.x1 = x;
child_allocation.x2 = child_allocation.x1 + MAX (1.0, child_size);