forked from enlightenment/enlightenment
'everything' use '.' as trigger for 'show parent dirs' again.
- rename module_init to plugin_init to be consistent SVN revision: 48292
This commit is contained in:
parent
231e6ba48b
commit
4ddec81bfd
|
@ -961,7 +961,7 @@ _new_app_action(Evry_Action *act)
|
||||||
|
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
module_init(void)
|
_plugins_init(void)
|
||||||
{
|
{
|
||||||
if (!evry_api_version_check(EVRY_API_VERSION))
|
if (!evry_api_version_check(EVRY_API_VERSION))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -1027,7 +1027,7 @@ module_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
module_shutdown(void)
|
_plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
EVRY_PLUGIN_FREE(p1);
|
EVRY_PLUGIN_FREE(p1);
|
||||||
EVRY_PLUGIN_FREE(p2);
|
EVRY_PLUGIN_FREE(p2);
|
||||||
|
@ -1332,7 +1332,7 @@ EAPI void *
|
||||||
e_modapi_init(E_Module *m)
|
e_modapi_init(E_Module *m)
|
||||||
{
|
{
|
||||||
if (e_datastore_get("everything_loaded"))
|
if (e_datastore_get("everything_loaded"))
|
||||||
active = module_init();
|
active = _plugins_init();
|
||||||
|
|
||||||
_conf_init(m);
|
_conf_init(m);
|
||||||
|
|
||||||
|
@ -1345,7 +1345,7 @@ EAPI int
|
||||||
e_modapi_shutdown(E_Module *m)
|
e_modapi_shutdown(E_Module *m)
|
||||||
{
|
{
|
||||||
if (active && e_datastore_get("everything_loaded"))
|
if (active && e_datastore_get("everything_loaded"))
|
||||||
module_shutdown();
|
_plugins_shutdown();
|
||||||
|
|
||||||
_conf_shutdown();
|
_conf_shutdown();
|
||||||
|
|
||||||
|
|
|
@ -322,7 +322,7 @@ _cleanup(Evry_Plugin *plugin)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
module_init(void)
|
_plugins_init(void)
|
||||||
{
|
{
|
||||||
Plugin *p;
|
Plugin *p;
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ module_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
module_shutdown(void)
|
_plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
EVRY_PLUGIN_FREE(_plug);
|
EVRY_PLUGIN_FREE(_plug);
|
||||||
}
|
}
|
||||||
|
@ -375,7 +375,7 @@ e_modapi_init(E_Module *m)
|
||||||
module = m;
|
module = m;
|
||||||
|
|
||||||
if (e_datastore_get("everything_loaded"))
|
if (e_datastore_get("everything_loaded"))
|
||||||
active = module_init();
|
active = _plugins_init();
|
||||||
|
|
||||||
e_module_delayed_set(m, 1);
|
e_module_delayed_set(m, 1);
|
||||||
|
|
||||||
|
@ -386,7 +386,7 @@ EAPI int
|
||||||
e_modapi_shutdown(E_Module *m)
|
e_modapi_shutdown(E_Module *m)
|
||||||
{
|
{
|
||||||
if (active && e_datastore_get("everything_loaded"))
|
if (active && e_datastore_get("everything_loaded"))
|
||||||
module_shutdown();
|
_plugins_shutdown();
|
||||||
|
|
||||||
module = NULL;
|
module = NULL;
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,7 @@ _cb_del(void *data __UNUSED__, int type __UNUSED__, void *event)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
module_init(void)
|
_plugins_init(void)
|
||||||
{
|
{
|
||||||
if (!evry_api_version_check(EVRY_API_VERSION))
|
if (!evry_api_version_check(EVRY_API_VERSION))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -246,7 +246,7 @@ module_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
module_shutdown(void)
|
_plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
EVRY_PLUGIN_FREE(p1);
|
EVRY_PLUGIN_FREE(p1);
|
||||||
}
|
}
|
||||||
|
@ -274,7 +274,7 @@ e_modapi_init(E_Module *m)
|
||||||
module = m;
|
module = m;
|
||||||
|
|
||||||
if (e_datastore_get("everything_loaded"))
|
if (e_datastore_get("everything_loaded"))
|
||||||
active = module_init();
|
active = _plugins_init();
|
||||||
|
|
||||||
e_module_delayed_set(m, 1);
|
e_module_delayed_set(m, 1);
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ e_modapi_shutdown(E_Module *m)
|
||||||
char *result;
|
char *result;
|
||||||
|
|
||||||
if (active && e_datastore_get("everything_loaded"))
|
if (active && e_datastore_get("everything_loaded"))
|
||||||
module_shutdown();
|
_plugins_shutdown();
|
||||||
|
|
||||||
EINA_LIST_FREE(history, result)
|
EINA_LIST_FREE(history, result)
|
||||||
eina_stringshare_del(result);
|
eina_stringshare_del(result);
|
||||||
|
|
|
@ -507,14 +507,15 @@ _fetch(Evry_Plugin *plugin, const char *input)
|
||||||
_read_directory(p);
|
_read_directory(p);
|
||||||
|
|
||||||
p->command = EINA_TRUE;
|
p->command = EINA_TRUE;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd = 1;
|
cmd = 1;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->directory && input && !strncmp(input, "#", 1))
|
if (p->directory && input && !strncmp(input, ".", 1))
|
||||||
{
|
{
|
||||||
if (!p->command)
|
if (!p->command)
|
||||||
{
|
{
|
||||||
|
@ -698,7 +699,7 @@ _open_term_action(Evry_Action *act)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
module_init(void)
|
_plugins_init(void)
|
||||||
{
|
{
|
||||||
if (!evry_api_version_check(EVRY_API_VERSION))
|
if (!evry_api_version_check(EVRY_API_VERSION))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -725,7 +726,7 @@ module_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
module_shutdown(void)
|
_plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
EVRY_PLUGIN_FREE(p1);
|
EVRY_PLUGIN_FREE(p1);
|
||||||
EVRY_PLUGIN_FREE(p2);
|
EVRY_PLUGIN_FREE(p2);
|
||||||
|
@ -937,7 +938,7 @@ e_modapi_init(E_Module *m)
|
||||||
module = m;
|
module = m;
|
||||||
|
|
||||||
if (e_datastore_get("everything_loaded"))
|
if (e_datastore_get("everything_loaded"))
|
||||||
active = module_init();
|
active = _plugins_init();
|
||||||
|
|
||||||
_conf_init(m);
|
_conf_init(m);
|
||||||
|
|
||||||
|
@ -950,7 +951,7 @@ EAPI int
|
||||||
e_modapi_shutdown(E_Module *m)
|
e_modapi_shutdown(E_Module *m)
|
||||||
{
|
{
|
||||||
if (active && e_datastore_get("everything_loaded"))
|
if (active && e_datastore_get("everything_loaded"))
|
||||||
module_shutdown();
|
_plugins_shutdown();
|
||||||
|
|
||||||
_conf_shutdown();
|
_conf_shutdown();
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ _action(Evry_Action *act)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
module_init(void)
|
_plugins_init(void)
|
||||||
{
|
{
|
||||||
if (!evry_api_version_check(EVRY_API_VERSION))
|
if (!evry_api_version_check(EVRY_API_VERSION))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -137,7 +137,7 @@ module_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
module_shutdown(void)
|
_plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
EVRY_PLUGIN_FREE(p);
|
EVRY_PLUGIN_FREE(p);
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ e_modapi_init(E_Module *m)
|
||||||
module = m;
|
module = m;
|
||||||
|
|
||||||
if (e_datastore_get("everything_loaded"))
|
if (e_datastore_get("everything_loaded"))
|
||||||
active = module_init();
|
active = _plugins_init();
|
||||||
|
|
||||||
e_module_delayed_set(m, 1);
|
e_module_delayed_set(m, 1);
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ EAPI int
|
||||||
e_modapi_shutdown(E_Module *m)
|
e_modapi_shutdown(E_Module *m)
|
||||||
{
|
{
|
||||||
if (active && e_datastore_get("everything_loaded"))
|
if (active && e_datastore_get("everything_loaded"))
|
||||||
module_shutdown();
|
_plugins_shutdown();
|
||||||
|
|
||||||
module = NULL;
|
module = NULL;
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ _action(Evry_Plugin *plugin, const Evry_Item *item)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
module_init(void)
|
_plugins_init(void)
|
||||||
{
|
{
|
||||||
if (!evry_api_version_check(EVRY_API_VERSION))
|
if (!evry_api_version_check(EVRY_API_VERSION))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -217,7 +217,7 @@ module_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
module_shutdown(void)
|
_plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
EVRY_PLUGIN_FREE(_plug);
|
EVRY_PLUGIN_FREE(_plug);
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ e_modapi_init(E_Module *m)
|
||||||
module = m;
|
module = m;
|
||||||
|
|
||||||
if (e_datastore_get("everything_loaded"))
|
if (e_datastore_get("everything_loaded"))
|
||||||
active = module_init();
|
active = _plugins_init();
|
||||||
|
|
||||||
e_module_delayed_set(m, 1);
|
e_module_delayed_set(m, 1);
|
||||||
|
|
||||||
|
@ -482,7 +482,7 @@ EAPI int
|
||||||
e_modapi_shutdown(E_Module *m)
|
e_modapi_shutdown(E_Module *m)
|
||||||
{
|
{
|
||||||
if (active && e_datastore_get("everything_loaded"))
|
if (active && e_datastore_get("everything_loaded"))
|
||||||
module_shutdown();
|
_plugins_shutdown();
|
||||||
|
|
||||||
module = NULL;
|
module = NULL;
|
||||||
|
|
||||||
|
|
|
@ -487,7 +487,7 @@ _act_item_icon_get(Evry_Plugin *p __UNUSED__, const Evry_Item *it, Evas *e)
|
||||||
|
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
module_init(void)
|
_plugins_init(void)
|
||||||
{
|
{
|
||||||
if (!evry_api_version_check(EVRY_API_VERSION))
|
if (!evry_api_version_check(EVRY_API_VERSION))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
@ -515,7 +515,7 @@ module_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
module_shutdown(void)
|
_plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
EVRY_PLUGIN_FREE(p1);
|
EVRY_PLUGIN_FREE(p1);
|
||||||
EVRY_PLUGIN_FREE(p2);
|
EVRY_PLUGIN_FREE(p2);
|
||||||
|
@ -545,7 +545,7 @@ e_modapi_init(E_Module *m)
|
||||||
module = m;
|
module = m;
|
||||||
|
|
||||||
if (e_datastore_get("everything_loaded"))
|
if (e_datastore_get("everything_loaded"))
|
||||||
active = module_init();
|
active = _plugins_init();
|
||||||
|
|
||||||
e_module_delayed_set(m, 1);
|
e_module_delayed_set(m, 1);
|
||||||
|
|
||||||
|
@ -558,7 +558,7 @@ EAPI int
|
||||||
e_modapi_shutdown(E_Module *m)
|
e_modapi_shutdown(E_Module *m)
|
||||||
{
|
{
|
||||||
if (active && e_datastore_get("everything_loaded"))
|
if (active && e_datastore_get("everything_loaded"))
|
||||||
module_shutdown();
|
_plugins_shutdown();
|
||||||
|
|
||||||
E_FREE(inst);
|
E_FREE(inst);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue