From cda5afb41981e5402bfc4816e71f12b99eb820fc Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 20 Aug 2010 17:03:06 +0100 Subject: [PATCH] box-layout: Use the correct name for the arguments Since we're getting the preferred height for a given width, the width argument should be named "for_width" and not "for_height". --- clutter/clutter-box-layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-box-layout.c b/clutter/clutter-box-layout.c index eaaa0ee1d..f07dd4fbc 100644 --- a/clutter/clutter-box-layout.c +++ b/clutter/clutter-box-layout.c @@ -569,7 +569,7 @@ static void get_preferred_height (ClutterBoxLayout *self, ClutterContainer *container, GList *children, - gfloat for_height, + gfloat for_width, gfloat *min_height_p, gfloat *natural_height_p) { @@ -608,7 +608,7 @@ get_preferred_height (ClutterBoxLayout *self, clutter_actor_get_preferred_height (child, (priv->is_vertical) - ? for_height + ? for_width : -1, &child_min, &child_nat);