script: Rename "state" → "states"

Make it clear that the key used when defining a state-based signal is
linked to the states of a ClutterState.
This commit is contained in:
Emmanuele Bassi
2011-06-11 13:30:02 +01:00
parent 29d7c5a297
commit b33973f9f8
4 changed files with 62 additions and 30 deletions

View File

@ -607,11 +607,11 @@ parse_signals (ClutterScript *script,
continue;
}
if (json_object_has_member (object, "state"))
state = json_object_get_string_member (object, "state");
if (json_object_has_member (object, "states"))
state = json_object_get_string_member (object, "states");
CLUTTER_NOTE (SCRIPT,
"Added signal '%s' (state:%s, target:%s)",
"Added signal '%s' (states:%s, target-state:%s)",
name,
state != NULL ? state : "<default>", target);