[clutter] stage: Use the Actor iteration API
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] stage: Use the Actor iteration API
- Date: Mon, 16 Jan 2012 23:56:34 +0000 (UTC)
commit 3ad77b417ce55a354945378e4a1aa22234540099
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Dec 19 12:04:03 2011 +0000
stage: Use the Actor iteration API
clutter/clutter-stage.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index e874f0a..a5ccf55 100644
--- a/clutter/clutter-stage.c
+++ b/clutter/clutter-stage.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]