actor: Unconditionally set show_on_set_parent
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 20 Apr 2012 23:54:05 +0000 (19:54 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 24 Apr 2012 15:25:42 +0000 (11:25 -0400)
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

index 988d462..a05d46b 100644 (file)
@@ -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]);
 }
 
 /**