diff options
author | Chris Michael <cp.michael@samsung.com> | 2017-02-27 13:12:24 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2017-02-27 13:12:24 -0500 |
commit | 5c858b86e5c84d4ced77d47bb61cc6817f0e3645 (patch) | |
tree | ed75c7984d5f1dacd8ec9fb83e22210e5fd15f61 /src/lib/ecore_imf | |
parent | 75b4bde8d226ffb59dfad5bcdcd76ce5dde5e1ac (diff) | |
download | efl-5c858b86e5c84d4ced77d47bb61cc6817f0e3645.tar.gz |
Revert "ecore-imf: Don't always load all modules"
Reverting this as it broke autoloading of the ecore_imf WL module.
This commit basically only loaded an X11 Ecore_Imf module even under a
wayland environment.
This reverts commit 75b4bde8d226ffb59dfad5bcdcd76ce5dde5e1ac.
Diffstat (limited to 'src/lib/ecore_imf')
-rw-r--r-- | src/lib/ecore_imf/ecore_imf_module.c | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/src/lib/ecore_imf/ecore_imf_module.c b/src/lib/ecore_imf/ecore_imf_module.c index 3fec5de1d6..7ec902a233 100644 --- a/src/lib/ecore_imf/ecore_imf_module.c +++ b/src/lib/ecore_imf/ecore_imf_module.c @@ -132,31 +132,14 @@ ecore_imf_module_init(void) } else { - Eina_Module *m; - const char **itr; - - for (itr = built_modules; *itr != NULL; itr++) - { - snprintf(buf, sizeof(buf), - "%s/ecore_imf/modules/%s/%s/module" SHARED_LIB_SUFFIX, - eina_prefix_lib_get(pfx), *itr, MODULE_ARCH); - - m = eina_module_new(buf); - if (m) - { - module_list = eina_array_new(1); - if (module_list) - { - eina_array_push(module_list, m); - break; - } - else - eina_module_free(m); - } - } + snprintf(buf, sizeof(buf), "%s/ecore_imf/modules", eina_prefix_lib_get(pfx)); + module_list = eina_module_arch_list_get(module_list, buf, MODULE_ARCH); } - if (module_list) eina_module_list_load(module_list); + // XXX: MODFIX: do not list ALL modules and load them ALL! this is + // is wrong - we end up loading BOTH xim ANd scim (and maybe uim too) + // etc. etc. when we need only 1! + eina_module_list_load(module_list); } void |