From 1e2132eca49347a2d8e519ab45780c52952c3e9e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 13 Dec 2014 14:28:46 +0000 Subject: [PATCH] actor: Bail when setting the same content No need to do all the work, if the content instance is the same. --- clutter/clutter-actor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 5c9613b07..652721ccb 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -19575,6 +19575,9 @@ clutter_actor_set_content (ClutterActor *self, priv = self->priv; + if (priv->content == content) + return; + if (priv->content != NULL) { _clutter_content_detached (priv->content, self);