mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
* 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:
parent
bb6751b84b
commit
d510a4b0cd
@ -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:
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user