mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
actor: Add some debug spew
This commit is contained in:
parent
86152f478d
commit
425ead5bd7
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user