From ae8bab0bc8a1a390509043b7f908c01ac4bf66b6 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 17 Sep 2008 10:40:32 +0000 Subject: [PATCH] Bug 1121 - Setting anchor point doesn't work if set too early * clutter/clutter-actor.c (clutter_actor_set_anchor_point_from_gravity) (clutter_actor_move_anchor_point_from_gravity): Add documentation to make it clear that the anchor point won't move when the actor is resized. --- ChangeLog | 10 ++++++++++ clutter/clutter-actor.c | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6a40c0dd1..4656dcaa3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-09-17 Neil Roberts + + Bug 1121 - Setting anchor point doesn't work if set too early + + * clutter/clutter-actor.c + (clutter_actor_set_anchor_point_from_gravity) + (clutter_actor_move_anchor_point_from_gravity): Add documentation + to make it clear that the anchor point won't move when the actor + is resized. + 2008-09-16 Neil Roberts Bug 1100 - WM_SIZE not handled correctly, user_resize and diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 0a443eb58..bfb2412e9 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -6264,6 +6264,12 @@ clutter_actor_get_anchor_pointu (ClutterActor *self, * actor postion so that its relative position within its parent remains * unchanged. * + * Note that the anchor is still stored as a point and the gravity + * value is forgotten. For example, if you set the anchor point to + * %CLUTTER_GRAVITY_SOUTH_EAST and later double the size of the actor, + * the anchor point will not move to the bottom right and will now be + * in the center of the actor. + * * Since: 0.6 */ void @@ -6299,6 +6305,12 @@ clutter_actor_move_anchor_point_from_gravity (ClutterActor *self, * Sets an anchor point on the actor, based on the given gravity (this is a * convenience function wrapping clutter_actor_set_anchor_point()). * + * Note that the anchor is still stored as a point and the gravity + * value is forgotten. For example, if you set the anchor point to + * %CLUTTER_GRAVITY_SOUTH_EAST and later double the size of the actor, + * the anchor point will not move to the bottom right and will now be + * in the center of the actor. + * * Since: 0.6 */ void