Freeze notification queue when changing multiple properties.
Call g_object_freeze_notify() (and take a reference on the actor) inside clutter_actor_request_size() so that the notifications get unqueued at the end of the size request.
This commit is contained in:
parent
1722c6fec4
commit
09487c904a
@ -437,6 +437,9 @@ clutter_actor_request_coords (ClutterActor *self,
|
||||
|
||||
if (CLUTTER_ACTOR_IS_VISIBLE (self))
|
||||
clutter_actor_queue_redraw (self);
|
||||
|
||||
g_object_ref (self);
|
||||
g_object_freeze_notify (G_OBJECT (self));
|
||||
|
||||
if (x_change)
|
||||
g_object_notify (G_OBJECT (self), "x");
|
||||
@ -449,6 +452,9 @@ clutter_actor_request_coords (ClutterActor *self,
|
||||
|
||||
if (height_change)
|
||||
g_object_notify (G_OBJECT (self), "height");
|
||||
|
||||
g_object_thaw_notify (G_OBJECT (self));
|
||||
g_object_unref (self);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user