From 0d874312d32f7c887286ddc28dcb8bbad6c4d33d Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Wed, 11 Mar 2009 18:16:21 +0000 Subject: [PATCH] [group] Output the group name when debugging paint Bug 1480 - Clutter groups don't output their name when CLUTTER_DEBUG=paint This is a really useful thing to do debugging-wise - as you can see istantly when (and if) clutter objects are being drawn - as often there's quite a hierarchy of objects in groups. Signed-off-by: Emmanuele Bassi --- clutter/clutter-group.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-group.c b/clutter/clutter-group.c index 454487aca..4e145810b 100644 --- a/clutter/clutter-group.c +++ b/clutter/clutter-group.c @@ -86,7 +86,9 @@ clutter_group_paint (ClutterActor *actor) ClutterGroupPrivate *priv = CLUTTER_GROUP (actor)->priv; GList *child_item; - CLUTTER_NOTE (PAINT, "ClutterGroup paint enter"); + CLUTTER_NOTE (PAINT, "ClutterGroup paint enter '%s'", + clutter_actor_get_name (actor) ? clutter_actor_get_name (actor) + : "unknown"); for (child_item = priv->children; child_item != NULL; @@ -100,7 +102,9 @@ clutter_group_paint (ClutterActor *actor) clutter_actor_paint (child); } - CLUTTER_NOTE (PAINT, "ClutterGroup paint leave"); + CLUTTER_NOTE (PAINT, "ClutterGroup paint leave '%s'", + clutter_actor_get_name (actor) ? clutter_actor_get_name (actor) + : "unknown"); } static void