mirror of
https://github.com/brl/mutter.git
synced 2025-07-05 10:31:18 +00:00
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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user