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;
|
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);
|
l = parse_behaviours (script, actor, node);
|
||||||
|
|
||||||
g_value_init (value, G_TYPE_POINTER);
|
g_value_init (value, G_TYPE_POINTER);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user