From b074db869c96476e67ed60cb043faf4510d35479 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 26 Mar 2012 18:34:15 +0100 Subject: [PATCH] actor: Add debug annotation in add_transition() --- clutter/clutter-actor.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 19010576a..4b07d4eca 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -17338,6 +17338,12 @@ clutter_actor_add_transition (ClutterActor *self, G_CALLBACK (on_transition_completed), clos); + CLUTTER_NOTE (ANIMATION, + "Adding transition '%s' [%p] to actor '%s'", + clos->name, + clos->transition, + _clutter_actor_get_debug_name (self)); + g_hash_table_insert (info->transitions, clos->name, clos); clutter_timeline_start (timeline); } @@ -17610,7 +17616,6 @@ clutter_actor_get_transition (ClutterActor *self, g_return_val_if_fail (name != NULL, NULL); info = _clutter_actor_get_animation_info_or_defaults (self); - if (info->transitions == NULL) return NULL;