* clutter/clutter-actor.c (clutter_actor_get_paint_visibility):

Fix logic so that it won't return TRUE for a hidden stage.
This commit is contained in:
Neil Roberts 2008-11-13 11:37:35 +00:00
parent bb6751b84b
commit d510a4b0cd
2 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2008-11-13 Neil Roberts <neil@linux.intel.com>
* clutter/clutter-actor.c (clutter_actor_get_paint_visibility):
Fix logic so that it won't return TRUE for a hidden stage.
2008-11-13 Emmanuele Bassi <ebassi@linux.intel.com>
* clutter/clutter-behaviour-ellipse.c:

View File

@ -5698,13 +5698,17 @@ clutter_actor_get_paint_visibility (ClutterActor *actor)
{
g_return_val_if_fail (CLUTTER_IS_ACTOR (actor), FALSE);
while (actor
&& !(CLUTTER_PRIVATE_FLAGS (actor) & CLUTTER_ACTOR_IS_TOPLEVEL)
&& CLUTTER_ACTOR_IS_VISIBLE (actor))
actor = clutter_actor_get_parent (actor);
do
{
if (!CLUTTER_ACTOR_IS_VISIBLE (actor))
return FALSE;
return ((CLUTTER_PRIVATE_FLAGS (actor) & CLUTTER_ACTOR_IS_TOPLEVEL)
? TRUE : FALSE);
if (CLUTTER_PRIVATE_FLAGS (actor) & CLUTTER_ACTOR_IS_TOPLEVEL)
return TRUE;
}
while ((actor = clutter_actor_get_parent (actor)) != NULL);
return FALSE;
}
/**