[clutter] actor: Improve debug message for create_transition()



commit 9371029a89d56a932c550efa43ad6c46e150896e
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Thu Jun 7 12:06:56 2012 +0100

    actor: Improve debug message for create_transition()
    
    Add the property and easing state information.

 clutter/clutter-actor.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 8f87730..fda5aca 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -593,6 +593,7 @@
 #include "clutter-container.h"
 #include "clutter-content-private.h"
 #include "clutter-debug.h"
+#include "clutter-easing.h"
 #include "clutter-effect-private.h"
 #include "clutter-enum-types.h"
 #include "clutter-fixed-layout.h"
@@ -17528,6 +17529,14 @@ _clutter_actor_create_transition (ClutterActor *actor,
       clutter_timeline_set_duration (timeline, info->cur_state->easing_duration);
       clutter_timeline_set_progress_mode (timeline, info->cur_state->easing_mode);
 
+      CLUTTER_NOTE (ANIMATION,
+                    "Created transition for %s:%s (len:%u, mode:%s, delay:%u)",
+                    _clutter_actor_get_debug_name (actor),
+                    pspec->name,
+                    info->cur_state->easing_duration,
+                    clutter_get_easing_name_for_mode (info->cur_state->easing_mode),
+                    info->cur_state->easing_delay);
+
       /* this will start the transition as well */
       clutter_actor_add_transition (actor, pspec->name, res);
 



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