/* do not use EINA_LIST_FREE! e_object_del modifies list */
if (x_fatal)
- {
- e_module_save_all();
- }
+ e_module_save_all();
else
{
while (_e_modules)
{
if (!em) continue;
- printf ("[E17_MODULE_INFO] NAME:%s, ENABLE:%d, DELAYED:%d\n", em->name, em->enabled, em->delayed);
+ printf ("[E17_MODULE_INFO] NAME:%s, ENABLE:%d, DELAYED:%d\n", em->name, em->enabled, em->delayed);
if ((em->delayed) && (em->enabled))
{
if (!em->name) continue;
- setenv("E_MODULE_LOAD", em->name, 1);
+ e_util_env_set("E_MODULE_LOAD", em->name);
snprintf (buf, sizeof(buf), _("Loading Module: %s"), em->name);
- e_init_status_set(em->name);
+ e_init_status_set(buf);
m = e_module_new(em->name);
if (m) e_module_enable(m);
m->error = 1;
goto init_done;
}
- m->handle = dlopen(modpath, RTLD_NOW | RTLD_GLOBAL);
+ m->handle = dlopen(modpath, (RTLD_NOW | RTLD_GLOBAL));
if (!m->handle)
{
snprintf(body, sizeof(body),
free(m);
}
+#if _F_USE_EXTN_DIALOG_
+static void
+_e_module_dialog_disable_show(const char *title,
+ const char *body,
+ E_Module *m __UNUSED__)
+{
+ printf("MODULE ERR:\n%s\n", body);
+ e_util_extn_dialog_show(title, body);
+}
+#else
static void
_e_module_dialog_disable_show(const char *title, const char *body, E_Module *m)
{
e_win_centered_set(dia->win, 1);
e_dialog_show(dia);
}
+#endif
static void
_e_module_cb_dialog_disable(void *data, E_Dialog *dia)
return (m2->priority - m1->priority);
}
-
static void
_e_module_event_update_free(void *data __UNUSED__, void *event)
{