[clutter/wip/apocalypses/apocalypse-1: 61/92] stage: Use the Actor iteration API



commit f665367807cac747d2ca8c60fb92e7694fe01ecd
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 36812a4..3262141 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]