1
0
Fork 0

actor: Bail when setting the same content

No need to do all the work, if the content instance is the same.
This commit is contained in:
Emmanuele Bassi 2014-12-13 14:28:46 +00:00
parent 300aa465c7
commit 1e2132eca4

View file

@ -19575,6 +19575,9 @@ clutter_actor_set_content (ClutterActor *self,
priv = self->priv; priv = self->priv;
if (priv->content == content)
return;
if (priv->content != NULL) if (priv->content != NULL)
{ {
_clutter_content_detached (priv->content, self); _clutter_content_detached (priv->content, self);