mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 11:30:45 -05: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,
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user