diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2012-07-06 18:06:33 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2012-07-11 13:22:20 +0100 |
commit | 20d1d24e3801890b8f692e76372fb19299274eb4 (patch) | |
tree | 2670698b4a6f6335b114825eeacbd5c6da22855f /examples/bin-layout.c | |
parent | 8cea162d3c416016465809a9db85bfa036d39745 (diff) | |
download | clutter-20d1d24e3801890b8f692e76372fb19299274eb4.tar.gz |
examples: Use pivot point, not anchor point
https://bugzilla.gnome.org/show_bug.cgi?id=677853
Diffstat (limited to 'examples/bin-layout.c')
-rw-r--r-- | examples/bin-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bin-layout.c b/examples/bin-layout.c index 048f3b4c9..7dc9b967d 100644 --- a/examples/bin-layout.c +++ b/examples/bin-layout.c @@ -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"); |