edje external module loader: just load modules once.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 23 Nov 2009 18:47:31 +0000 (18:47 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 23 Nov 2009 18:47:31 +0000 (18:47 +0000)
not tested, but should work.

SVN revision: 43933

legacy/edje/src/lib/edje_module.c

index 19addd4..b2e2efc 100644 (file)
@@ -59,6 +59,10 @@ edje_module_load(const char *module)
    Eina_Module *m;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(module, EINA_FALSE);
+
+   if (eina_hash_find(_registered_modules, module))
+     return EINA_TRUE;
+
    m = eina_module_find(_available_modules, module);
 
    if (!m)