* clutter/clutter-label.c:
(clutter_label_ensure_layout): Fix the ClutterUnits to Pango
scale conversion.
+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:
}
if (priv->ellipsize != PANGO_ELLIPSIZE_NONE)
- pango_layout_set_width (priv->layout, width > 0 ? CLUTTER_UNITS_TO_PANGO_UNIT (raw_width)
- : -1);
+ pango_layout_set_width (priv->layout, raw_width > 0 ? CLUTTER_UNITS_TO_PANGO_UNIT (raw_width)
+ : -1);
else if (priv->wrap)
{
pango_layout_set_wrap (priv->layout, priv->wrap_mode);
}
}
else
- pango_layout_set_width (priv->layout, width > 0 ? CLUTTER_UNITS_FROM_PANGO_UNIT (raw_width)
- : -1);
+ pango_layout_set_width (priv->layout, raw_width > 0 ? CLUTTER_UNITS_TO_PANGO_UNIT (raw_width)
+ : -1);
}
CLUTTER_NOTE (ACTOR, "Label width set to %d pixels", width);