mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
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.
This commit is contained in:
parent
11239d8da6
commit
341faaa089
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user