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".
This commit is contained in:
Emmanuele Bassi 2010-08-20 17:03:06 +01:00
parent 5f15a620a1
commit cda5afb419

View File

@ -569,7 +569,7 @@ static void
get_preferred_height (ClutterBoxLayout *self, get_preferred_height (ClutterBoxLayout *self,
ClutterContainer *container, ClutterContainer *container,
GList *children, GList *children,
gfloat for_height, gfloat for_width,
gfloat *min_height_p, gfloat *min_height_p,
gfloat *natural_height_p) gfloat *natural_height_p)
{ {
@ -608,7 +608,7 @@ get_preferred_height (ClutterBoxLayout *self,
clutter_actor_get_preferred_height (child, clutter_actor_get_preferred_height (child,
(priv->is_vertical) (priv->is_vertical)
? for_height ? for_width
: -1, : -1,
&child_min, &child_min,
&child_nat); &child_nat);