script: Add loading from a resource

GLib has gained support for compiling ancillary data files into the same
binary blob as a library or as an executable.

We should add this feature to ClutterScript, so that it's possible to
bundle UI definitions with an application.
This commit is contained in:
Emmanuele Bassi
2012-01-16 11:27:08 +00:00
parent 254ebd8765
commit 8d8d4ae7e5
4 changed files with 44 additions and 1 deletions

View File

@ -153,6 +153,9 @@ guint clutter_script_load_from_data (ClutterScript
const gchar *data,
gssize length,
GError **error);
guint clutter_script_load_from_resource (ClutterScript *script,
const gchar *resource_path,
GError **error);
GObject * clutter_script_get_object (ClutterScript *script,
const gchar *name);