forked from enlightenment/enlightenment
set module->active when initialized by everything
SVN revision: 48765
This commit is contained in:
parent
db8fad47d1
commit
4de02b5cbe
|
@ -966,8 +966,6 @@ _plugins_init(const Evry_API *api)
|
|||
if (!evry->api_version_check(EVRY_API_VERSION))
|
||||
return EINA_FALSE;
|
||||
|
||||
evry_module->active = EINA_TRUE;
|
||||
|
||||
p = EVRY_PLUGIN_NEW(Plugin, N_("Applications"), NULL, EVRY_TYPE_APP,
|
||||
_begin, _finish, _fetch, NULL);
|
||||
p->complete = &_complete;
|
||||
|
@ -1298,7 +1296,7 @@ e_modapi_init(E_Module *m)
|
|||
EVRY_MODULE_REGISTER(evry_module);
|
||||
|
||||
if ((evry = e_datastore_get("everything_loaded")))
|
||||
_plugins_init(evry);
|
||||
evry_module->active = _plugins_init(evry);
|
||||
|
||||
/* taken from e_exebuf.c */
|
||||
exelist_exe_edd = E_CONFIG_DD_NEW("E_Exe", E_Exe);
|
||||
|
|
|
@ -422,8 +422,6 @@ _plugins_init(const Evry_API *_api)
|
|||
|
||||
_plug = (Plugin *) p;
|
||||
|
||||
evry_module->active = EINA_TRUE;
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -658,7 +656,7 @@ e_modapi_init(E_Module *m)
|
|||
EVRY_MODULE_REGISTER(evry_module);
|
||||
|
||||
if ((evry = e_datastore_get("everything_loaded")))
|
||||
_plugins_init(evry);
|
||||
evry_module->active = _plugins_init(evry);
|
||||
|
||||
e_module_delayed_set(m, 1);
|
||||
|
||||
|
|
|
@ -242,8 +242,6 @@ _plugins_init(const Evry_API *_api)
|
|||
pc->trigger = eina_stringshare_add("=");
|
||||
}
|
||||
|
||||
evry_module->active = EINA_TRUE;
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -275,7 +273,7 @@ e_modapi_init(E_Module *m)
|
|||
EVRY_MODULE_REGISTER(evry_module);
|
||||
|
||||
if ((evry = e_datastore_get("everything_loaded")))
|
||||
_plugins_init(evry);
|
||||
evry_module->active = _plugins_init(evry);
|
||||
|
||||
e_module_delayed_set(m, 1);
|
||||
|
||||
|
|
|
@ -1267,8 +1267,6 @@ _plugins_init(const Evry_API *api)
|
|||
_mime_dir = eina_stringshare_add("inode/directory");
|
||||
_mime_mount = eina_stringshare_add("inode/mountpoint");
|
||||
|
||||
evry_module->active = EINA_TRUE;
|
||||
|
||||
#define PLUGIN_NEW(_name, _icon, _begin, _finish, _fetch) \
|
||||
p = EVRY_PLUGIN_NEW(Evry_Plugin, _name, _icon, EVRY_TYPE_FILE, \
|
||||
_begin, _finish, _fetch, NULL); \
|
||||
|
@ -1579,7 +1577,7 @@ e_modapi_init(E_Module *m)
|
|||
EVRY_MODULE_REGISTER(evry_module);
|
||||
|
||||
if ((evry = e_datastore_get("everything_loaded")))
|
||||
_plugins_init(evry);
|
||||
evry_module->active = _plugins_init(evry);
|
||||
|
||||
e_module_delayed_set(m, 1);
|
||||
|
||||
|
|
|
@ -124,8 +124,6 @@ _plugins_init(const Evry_API *_api)
|
|||
|
||||
evry->action_register(act, 0);
|
||||
|
||||
evry_module->active = EINA_TRUE;
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -159,7 +157,7 @@ e_modapi_init(E_Module *m)
|
|||
EVRY_MODULE_REGISTER(evry_module);
|
||||
|
||||
if ((evry = e_datastore_get("everything_loaded")))
|
||||
_plugins_init(evry);
|
||||
evry_module->active = _plugins_init(evry);
|
||||
|
||||
e_module_delayed_set(m, 1);
|
||||
|
||||
|
|
|
@ -126,8 +126,6 @@ _plugins_init(const Evry_API *_api)
|
|||
|
||||
evry->action_register(_act, 2);
|
||||
|
||||
evry_module->active = EINA_TRUE;
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -378,7 +376,7 @@ e_modapi_init(E_Module *m)
|
|||
EVRY_MODULE_REGISTER(evry_module);
|
||||
|
||||
if ((evry = e_datastore_get("everything_loaded")))
|
||||
_plugins_init(evry);
|
||||
evry_module->active = _plugins_init(evry);
|
||||
|
||||
e_module_delayed_set(m, 1);
|
||||
|
||||
|
|
|
@ -402,8 +402,6 @@ _plugins_init(const Evry_API *_api)
|
|||
_actions = eina_list_append(_actions, act);
|
||||
evry->action_register(act, 3);
|
||||
|
||||
evry_module->active = EINA_TRUE;
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
@ -440,7 +438,7 @@ e_modapi_init(E_Module *m)
|
|||
EVRY_MODULE_REGISTER(evry_module);
|
||||
|
||||
if ((evry = e_datastore_get("everything_loaded")))
|
||||
_plugins_init(evry);
|
||||
evry_module->active = _plugins_init(evry);
|
||||
|
||||
e_module_delayed_set(m, 1);
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ e_modapi_init(E_Module *m)
|
|||
e_datastore_set("everything_loaded", _api);
|
||||
|
||||
EINA_LIST_FOREACH(e_datastore_get("everything_modules"), l, em)
|
||||
em->init(_api);
|
||||
em->active = em->init(_api);
|
||||
|
||||
/* cleanup every hour :) */
|
||||
cleanup_timer = ecore_timer_add(3600, _cleanup_history, NULL);
|
||||
|
|
Loading…
Reference in New Issue