script: Use a node when resolving an animation mode
Instead of taking a string and duplicating the "is it a string or an integer" check in both Alpha and Animation, the function in ClutterScript that resolves the animation mode values should take a JsonNode and do all the checks it needs.
This commit is contained in:
@ -103,7 +103,7 @@ gboolean clutter_script_parse_node (ClutterScript *script,
|
||||
GType clutter_script_get_type_from_symbol (const gchar *symbol);
|
||||
GType clutter_script_get_type_from_class (const gchar *name);
|
||||
|
||||
gulong clutter_script_resolve_animation_mode (const gchar *namer);
|
||||
gulong clutter_script_resolve_animation_mode (JsonNode *node);
|
||||
|
||||
gboolean clutter_script_enum_from_string (GType gtype,
|
||||
const gchar *string,
|
||||
|
Reference in New Issue
Block a user