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

* clutter/clutter-label.c:
	(clutter_label_query_coords): Return the bounding box set inside
	request_coords(), if any; otherwise, return the natural allocation
	of the label. (#678, reported by Gwenole Beauchesne)

	* tests/test-rotate.c: Align the label
This commit is contained in:
Emmanuele Bassi
2007-12-20 09:22:05 +00:00
parent 263d8ea5a0
commit ecded5cb7c
3 changed files with 16 additions and 2 deletions

View File

@ -36,6 +36,7 @@ main (int argc, char *argv[])
clutter_container_add_actor (CLUTTER_CONTAINER (stage), hand);
label = clutter_label_new_with_text ("Mono 16", "The Wonder of the Spinning Hand");
clutter_label_set_alignment (CLUTTER_LABEL (label), PANGO_ALIGN_CENTER);
clutter_actor_set_position (label, 150, 150);
clutter_actor_show (label);
clutter_container_add_actor (CLUTTER_CONTAINER (stage), label);