[clutter] actor: Unconditionally set show_on_set_parent



commit 81b19a78f5e02ae8ffd9235054d80b172496415b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Apr 20 19:54:05 2012 -0400

    actor: Unconditionally set show_on_set_parent
    
    Otherwise, doing something like adjusting the child's position
    on a hidden actor will re-show it, which is not what we want.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674510

 clutter/clutter-actor.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 988d462..a05d46b 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -1554,12 +1554,9 @@ set_show_on_set_parent (ClutterActor *self,
   if (priv->show_on_set_parent == set_show)
     return;
 
-  if (priv->parent == NULL)
-    {
-      priv->show_on_set_parent = set_show;
-      g_object_notify_by_pspec (G_OBJECT (self),
-                                obj_props[PROP_SHOW_ON_SET_PARENT]);
-    }
+  priv->show_on_set_parent = set_show;
+  g_object_notify_by_pspec (G_OBJECT (self),
+                            obj_props[PROP_SHOW_ON_SET_PARENT]);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]