actor: Add some debug spew

This commit is contained in:
Emmanuele Bassi 2011-12-20 14:47:04 +00:00 committed by Emmanuele Bassi
parent 86152f478d
commit 425ead5bd7

View File

@ -1922,6 +1922,15 @@ clutter_actor_real_allocate (ClutterActor *self,
clutter_actor_box_set_origin (&children_box, 0, 0); clutter_actor_box_set_origin (&children_box, 0, 0);
clutter_actor_box_set_size (&children_box, width, height); 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, clutter_layout_manager_allocate (priv->layout_manager,
container, container,
&children_box, &children_box,
@ -2864,6 +2873,13 @@ clutter_actor_real_paint (ClutterActor *actor)
iter != NULL; iter != NULL;
iter = iter->priv->next_sibling) 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); clutter_actor_paint (iter);
} }
} }