From 341faaa0898c19a0c2c569460a0c4f08a7b8e23c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 31 Jan 2012 12:45:08 +0000 Subject: [PATCH] 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 file changed, 7 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index ab262f8d0..4eff0c2a6 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);