mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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:
parent
300aa465c7
commit
1e2132eca4
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user