mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
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:
parent
5f15a620a1
commit
cda5afb419
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user