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

* clutter.symbols: Update with the new public symbols

	* clutter/clutter-script.h:
	* clutter/clutter-script-private.h:
	* clutter/clutter-script.c:
	(parse_signals), (json_object_end),
	(signal_info_free), (object_info_free): Parse the "signals"
	member for GObjects.

	(clutter_script_connect_signals),
	(clutter_script_connect_signals_full): Add new API for autoconnecting
	signal handlers using the UI definition files.

	* tests/test-script.c:
	* tests/test-script.json: Test signal autoconnection.
This commit is contained in:
Emmanuele Bassi
2007-11-15 15:24:43 +00:00
parent 885adf33e6
commit 960619b9e3
9 changed files with 445 additions and 23 deletions

View File

@ -43,6 +43,7 @@ typedef struct {
GList *properties;
GList *children;
GList *behaviours;
GList *signals;
GType gtype;
GObject *object;
@ -62,6 +63,14 @@ typedef struct {
GParamSpec *pspec;
} PropertyInfo;
typedef struct {
gchar *name;
gchar *handler;
gchar *object;
GConnectFlags flags;
} SignalInfo;
void property_info_free (gpointer data);
gboolean clutter_script_parse_node (ClutterScript *script,