[clutter/clutter-1.10] actor: Add debug annotation in add_transition()



commit cb4e3235b575d38aaf01ac66d6d3e27169461681
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Mar 26 18:34:15 2012 +0100

    actor: Add debug annotation in add_transition()

 clutter/clutter-actor.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 203809b..011da44 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -17334,6 +17334,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);
 }
@@ -17606,7 +17612,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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]