aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-08-13 15:47:18 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-09-13 09:54:13 +0200
commit2d94b8b93f59ed7b5e682526db5b7e27c3539442 (patch)
treea2f7533925a4358ddfd8767ebc3953dfb86fe73b
parenttest_gengrid: add focused, unfocused callback to test focus signal (diff)
downloadefl-2d94b8b93f59ed7b5e682526db5b7e27c3539442.tar.gz
ethumb: fix module loading when running in tree
Differential Revision: https://phab.enlightenment.org/D6820
-rw-r--r--src/lib/ethumb/ethumb.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index 436088e9b2..e3afb74bc9 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -173,9 +173,18 @@ _ethumb_plugins_load(void)
const char **itr;
for (itr = built_modules; *itr != NULL; itr++)
{
+ Eina_Module *m;
+
bs_mod_get(buf, sizeof(buf), "ethumb", *itr);
- _plugins = eina_module_list_get(_plugins, buf,
- EINA_FALSE, NULL, NULL);
+
+ m = eina_module_new(buf);
+
+ if (!m) continue;
+
+ if (!_plugins)
+ _plugins = eina_array_new(1);
+
+ eina_array_push(_plugins, m);
}
goto load;
}