mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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
5e025f8e38
commit
7359668c3d
@ -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