mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05: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>
|
2008-11-13 Emmanuele Bassi <ebassi@linux.intel.com>
|
||||||
|
|
||||||
* clutter/clutter-behaviour-ellipse.c:
|
* 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);
|
g_return_val_if_fail (CLUTTER_IS_ACTOR (actor), FALSE);
|
||||||
|
|
||||||
while (actor
|
do
|
||||||
&& !(CLUTTER_PRIVATE_FLAGS (actor) & CLUTTER_ACTOR_IS_TOPLEVEL)
|
{
|
||||||
&& CLUTTER_ACTOR_IS_VISIBLE (actor))
|
if (!CLUTTER_ACTOR_IS_VISIBLE (actor))
|
||||||
actor = clutter_actor_get_parent (actor);
|
return FALSE;
|
||||||
|
|
||||||
return ((CLUTTER_PRIVATE_FLAGS (actor) & CLUTTER_ACTOR_IS_TOPLEVEL)
|
if (CLUTTER_PRIVATE_FLAGS (actor) & CLUTTER_ACTOR_IS_TOPLEVEL)
|
||||||
? TRUE : FALSE);
|
return TRUE;
|
||||||
|
}
|
||||||
|
while ((actor = clutter_actor_get_parent (actor)) != NULL);
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user