[clutter] actor: Add diagnostic message for "behaviours" in ClutterScript



commit 341faaa0898c19a0c2c569460a0c4f08a7b8e23c
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Tue Jan 31 12:45:08 2012 +0000

    actor: Add diagnostic message for "behaviours" in ClutterScript
    
    Behaviours have long since been deprecated; we should notify the user
    that still uses behaviours in ClutterScript definitions.

 clutter/clutter-actor.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index ab262f8..4eff0c2 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -11657,6 +11657,13 @@ clutter_actor_parse_custom_node (ClutterScriptable *scriptable,
     {
       GSList *l;
 
+#ifdef CLUTTER_ENABLE_DEBUG
+      if (G_UNLIKELY (_clutter_diagnostic_enabled ()))
+        _clutter_diagnostic_message ("The 'behaviours' key is deprecated "
+                                     "and it should not be used in newly "
+                                     "written ClutterScript definitions.");
+#endif
+
       l = parse_behaviours (script, actor, node);
 
       g_value_init (value, G_TYPE_POINTER);



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