stage: Use the Actor iteration API

This commit is contained in:
Emmanuele Bassi 2011-12-19 12:04:03 +00:00 committed by Emmanuele Bassi
parent aa9e2a382c
commit 3ad77b417c

View File

@ -668,13 +668,18 @@ static void
clutter_stage_pick (ClutterActor *self,
const ClutterColor *color)
{
ClutterActor *child;
/* Note: we don't chain up to our parent as we don't want any geometry
* emitted for the stage itself. The stage's pick id is effectively handled
* by the call to cogl_clear done in clutter-main.c:_clutter_do_pick_async()
*/
clutter_container_foreach (CLUTTER_CONTAINER (self),
CLUTTER_CALLBACK (clutter_actor_paint),
NULL);
for (child = clutter_actor_get_first_child (self);
child != NULL;
child = clutter_actor_get_next_sibling (child))
{
clutter_actor_paint (child);
}
}
static gboolean