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:
Emmanuele Bassi 2007-04-16 16:50:23 +00:00
parent 5e025f8e38
commit 7359668c3d

View File

@ -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);
}
}