mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
2008-01-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c: (clutter_label_ensure_layout): Fix the ClutterUnits to Pango scale conversion.
This commit is contained in:
parent
6fdeda0e8f
commit
a6c7ce7117
@ -1,3 +1,9 @@
|
||||
2008-01-09 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-label.c:
|
||||
(clutter_label_ensure_layout): Fix the ClutterUnits to Pango
|
||||
scale conversion.
|
||||
|
||||
2008-01-08 Emmanuele Bassi <ebassi@openedhand.com>
|
||||
|
||||
* clutter/clutter-model.c:
|
||||
|
@ -198,7 +198,7 @@ clutter_label_ensure_layout (ClutterLabel *label)
|
||||
}
|
||||
|
||||
if (priv->ellipsize != PANGO_ELLIPSIZE_NONE)
|
||||
pango_layout_set_width (priv->layout, width > 0 ? CLUTTER_UNITS_TO_PANGO_UNIT (raw_width)
|
||||
pango_layout_set_width (priv->layout, raw_width > 0 ? CLUTTER_UNITS_TO_PANGO_UNIT (raw_width)
|
||||
: -1);
|
||||
else if (priv->wrap)
|
||||
{
|
||||
@ -266,7 +266,7 @@ clutter_label_ensure_layout (ClutterLabel *label)
|
||||
}
|
||||
}
|
||||
else
|
||||
pango_layout_set_width (priv->layout, width > 0 ? CLUTTER_UNITS_FROM_PANGO_UNIT (raw_width)
|
||||
pango_layout_set_width (priv->layout, raw_width > 0 ? CLUTTER_UNITS_TO_PANGO_UNIT (raw_width)
|
||||
: -1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user