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:
@ -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);
|
||||
|
Reference in New Issue
Block a user