2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-label.c (clutter_label_ensure_layout): If the
	label has a requested size, force it when ensuring the layout.
This commit is contained in:
Emmanuele Bassi 2007-12-06 10:49:46 +00:00
parent 1d03019825
commit 40df4dee2b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c (clutter_label_ensure_layout): If the
label has a requested size, force it when ensuring the layout.
2007-12-06 Emmanuele Bassi <ebassi@openedhand.com>
* tests/test-unproject.c: Fix type comparison.

View File

@ -264,7 +264,8 @@ clutter_label_ensure_layout (ClutterLabel *label)
}
}
else
pango_layout_set_width (priv->layout, -1);
pango_layout_set_width (priv->layout, (width > 0 ? width * PANGO_SCALE
: -1));
}
CLUTTER_NOTE (ACTOR, "Label width set to %d pixels", width);