[clutter/wip/apocalypses/apocalypse-1: 68/92] actor: Add some debug spew



commit d6b83836124fc9e952e54d968219938b79bebc28
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Tue Dec 20 14:47:04 2011 +0000

    actor: Add some debug spew

 clutter/clutter-actor.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 748623a..a439628 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -1922,6 +1922,15 @@ clutter_actor_real_allocate (ClutterActor           *self,
       clutter_actor_box_set_origin (&children_box, 0, 0);
       clutter_actor_box_set_size (&children_box, width, height);
 
+      CLUTTER_NOTE (LAYOUT,
+                    "Allocating children of %s at { %.2f, %.2f - %.2f x %.2f } using %s",
+                    _clutter_actor_get_debug_name (self),
+                    priv->allocation.x1,
+                    priv->allocation.y1,
+                    width,
+                    height,
+                    G_OBJECT_TYPE_NAME (priv->layout_manager));
+
       clutter_layout_manager_allocate (priv->layout_manager,
                                        container,
                                        &children_box,
@@ -2864,6 +2873,13 @@ clutter_actor_real_paint (ClutterActor *actor)
        iter != NULL;
        iter = iter->priv->next_sibling)
     {
+      CLUTTER_NOTE (PAINT, "Painting %s at { %.2f, %.2f - %.2f x %.2f }",
+                    _clutter_actor_get_debug_name (iter),
+                    iter->priv->allocation.x1,
+                    iter->priv->allocation.y1,
+                    iter->priv->allocation.x2 - iter->priv->allocation.x1,
+                    iter->priv->allocation.y2 - iter->priv->allocation.y1);
+
       clutter_actor_paint (iter);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]