[clutter/clutter-1.20] actor: Bail when setting the same content
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.20] actor: Bail when setting the same content
- Date: Fri, 9 Jan 2015 13:31:45 +0000 (UTC)
commit 52f36dbd28c27118049fbb7320b16b924b781bff
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sat Dec 13 14:28:46 2014 +0000
actor: Bail when setting the same content
No need to do all the work, if the content instance is the same.
(cherry picked from commit 1e2132eca49347a2d8e519ab45780c52952c3e9e)
Signed-off-by: Emmanuele Bassi <ebassi gnome org>
clutter/clutter-actor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 8663a6d..dd2ac5d 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -19505,6 +19505,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]