2008-02-07 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-script-parser.c:
	(clutter_script_get_type_from_symbol),
	(clutter_script_get_type_from_class): Use BIND_LAZY flag
	when looking at the symbols, so we don't load them all up.

	* clutter/clutter-script.c (resolve_alpha_func): Ditto as above.
This commit is contained in:
Emmanuele Bassi
2008-02-07 14:17:53 +00:00
parent 56a34b724f
commit 6b4a9c4df5
3 changed files with 26 additions and 9 deletions

View File

@ -26,7 +26,7 @@ clutter_script_get_type_from_symbol (const gchar *symbol)
GType gtype = G_TYPE_INVALID;
if (!module)
module = g_module_open (NULL, 0);
module = g_module_open (NULL, G_MODULE_BIND_LAZY);
if (g_module_symbol (module, symbol, (gpointer)&func))
gtype = func ();
@ -64,7 +64,10 @@ clutter_script_get_type_from_class (const gchar *name)
symbol = g_string_free (symbol_name, FALSE);
if (g_module_symbol (module, symbol, (gpointer)&func))
gtype = func ();
{
CLUTTER_NOTE (SCRIPT, "Type function: %s", symbol);
gtype = func ();
}
g_free (symbol);