2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-scriptable.[ch]: Rename ::set_name and ::get_name
	to ::set_id and ::get_id, to avoid potential confusion with the
	ClutterActor:name property.

	* clutter/clutter-script.h:
	* clutter/clutter-script.c (clutter_script_construct_object): Use
	clutter_scriptable_set_id().

	(clutter_get_script_id): Add a public function to retrieve the ID
	used in the UI definition files from an object.

	* clutter/clutter-actor.c: Do not set the name of the actor with
	the ID set in the UI definition files.

	* tests/test-script.c: Test clutter_get_script_id().

	* clutter.symbols: Update with the new symbols.
This commit is contained in:
Emmanuele Bassi
2007-11-14 11:32:24 +00:00
parent bbf57ee461
commit b0e169d73c
10 changed files with 93 additions and 58 deletions

View File

@ -1,3 +1,8 @@
2007-11-14 Emmanuele Bassi <ebassi@openedhand.com>
* clutter-sections.txt: Update with the ClutterScriptable changes
and add clutter_get_script_id().
2007-10-28 Matthew Allum <mallum@openedhand.com>
* clutter-animation.sgml:

View File

@ -1101,6 +1101,7 @@ clutter_script_get_objects
clutter_script_unmerge_objects
clutter_script_ensure_objects
clutter_script_get_type_from_name
clutter_get_script_id
<SUBSECTION Standard>
CLUTTER_TYPE_SCRIPT
CLUTTER_SCRIPT
@ -1119,8 +1120,8 @@ clutter_script_error_quark
<FILE>clutter-scriptable</FILE>
<TITLE>ClutterScriptable</TITLE>
ClutterScriptableIface
clutter_scriptable_set_name
clutter_scriptable_get_name
clutter_scriptable_set_id
clutter_scriptable_get_id
clutter_scriptable_parse_custom_node
clutter_scriptable_set_custom_property
<SUBSECTION Standard>