mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
[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 <ebassi@linux.intel.com>
This commit is contained in:
parent
02b2b664d8
commit
0d874312d3
@ -86,7 +86,9 @@ clutter_group_paint (ClutterActor *actor)
|
|||||||
ClutterGroupPrivate *priv = CLUTTER_GROUP (actor)->priv;
|
ClutterGroupPrivate *priv = CLUTTER_GROUP (actor)->priv;
|
||||||
GList *child_item;
|
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;
|
for (child_item = priv->children;
|
||||||
child_item != NULL;
|
child_item != NULL;
|
||||||
@ -100,7 +102,9 @@ clutter_group_paint (ClutterActor *actor)
|
|||||||
clutter_actor_paint (child);
|
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
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user