examples: Use pivot point, not anchor point

https://bugzilla.gnome.org/show_bug.cgi?id=677853
This commit is contained in:
Emmanuele Bassi
2012-07-06 18:06:33 +01:00
parent 8cea162d3c
commit 20d1d24e38
4 changed files with 5 additions and 4 deletions

View File

@ -190,7 +190,7 @@ main (int argc, char *argv[])
*/
box = clutter_actor_new ();
clutter_actor_set_layout_manager (box, layout);
clutter_actor_set_anchor_point_from_gravity (box, CLUTTER_GRAVITY_CENTER);
clutter_actor_add_constraint (box, clutter_align_constraint_new (stage, CLUTTER_ALIGN_BOTH, 0.5));
clutter_actor_set_position (box, 320, 240);
clutter_actor_set_reactive (box, TRUE);
clutter_actor_set_name (box, "box");