Commit 59fd7e4a authored by Bastian Winkler's avatar Bastian Winkler Committed by Emmanuele Bassi

animator: Append parsed animator keys to previously parsed ones

Reuse the GSList of the previously parsed property when building a
ClutterAnimator from script, otherwise only the last used property will
be used
parent fd6f6707
......@@ -1294,7 +1294,11 @@ parse_animator_property (JsonArray *array,
valid_keys = NULL;
if (G_IS_VALUE (clos->value))
valid_keys = g_slist_reverse (g_value_get_pointer (clos->value));
g_value_init (clos->value, G_TYPE_POINTER);
for (k = json_array_get_elements (keys);
k != NULL;
k = k->next)
......@@ -1336,7 +1340,6 @@ parse_animator_property (JsonArray *array,
valid_keys = g_slist_prepend (valid_keys, animator_key);
g_value_init (clos->value, G_TYPE_POINTER);
g_value_set_pointer (clos->value, g_slist_reverse (valid_keys));
clos->result = TRUE;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment