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
This commit is contained in:
Jasper St. Pierre 2012-04-20 19:54:05 -04:00
parent 0287dc26ad
commit 81b19a78f5

View 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]);
}
/**