mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -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
1722c6fec4
commit
09487c904a
@ -438,6 +438,9 @@ clutter_actor_request_coords (ClutterActor *self,
|
|||||||
if (CLUTTER_ACTOR_IS_VISIBLE (self))
|
if (CLUTTER_ACTOR_IS_VISIBLE (self))
|
||||||
clutter_actor_queue_redraw (self);
|
clutter_actor_queue_redraw (self);
|
||||||
|
|
||||||
|
g_object_ref (self);
|
||||||
|
g_object_freeze_notify (G_OBJECT (self));
|
||||||
|
|
||||||
if (x_change)
|
if (x_change)
|
||||||
g_object_notify (G_OBJECT (self), "x");
|
g_object_notify (G_OBJECT (self), "x");
|
||||||
|
|
||||||
@ -449,6 +452,9 @@ clutter_actor_request_coords (ClutterActor *self,
|
|||||||
|
|
||||||
if (height_change)
|
if (height_change)
|
||||||
g_object_notify (G_OBJECT (self), "height");
|
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