Autoload modules for external widgets

Patch by Fabiano Fidencio


SVN revision: 43951
This commit is contained in:
Iván Briano 2009-11-24 17:55:11 +00:00
parent f4e1c3a9b9
commit 9892926bdf
2 changed files with 14 additions and 1 deletions

View File

@ -517,6 +517,7 @@ New_Object_Handler object_handlers[] =
{"spectra", NULL},
{"spectra.spectrum", ob_spectrum},
{"collections", ob_collections},
{"collections.externals", NULL}, /* dup */
{"collections.images", NULL}, /* dup */
{"collections.fonts", NULL}, /* dup */
{"collections.styles", NULL}, /* dup */
@ -527,6 +528,7 @@ New_Object_Handler object_handlers[] =
{"collections.group.data", NULL},
{"collections.group.script", ob_collections_group_script},
{"collections.group.lua_script", ob_collections_group_lua_script},
{"collections.group.externals", NULL}, /* dup */
{"collections.group.images", NULL}, /* dup */
{"collections.group.fonts", NULL}, /* dup */
{"collections.group.styles", NULL}, /* dup */

View File

@ -305,7 +305,18 @@ _edje_object_file_set_internal(Evas_Object *obj, const char *file, const char *g
ed->group = eina_stringshare_add(group);
ed->load_error = EDJE_LOAD_ERROR_NONE;
_edje_file_add(ed);
_edje_file_add(ed);
if (ed->file->external_dir)
{
const Edje_External_Directory_Entry *ext;
const Eina_List *n;
EINA_LIST_FOREACH(ed->file->external_dir->entries, n, ext)
{
edje_module_load(ext->entry);
}
}
_edje_textblock_styles_add(ed);
_edje_textblock_style_all_update(ed);