e17/evry: what a hack :)

SVN revision: 65114
This commit is contained in:
Hannes Janetzek 2011-11-13 00:36:04 +00:00
parent 07532bd1ab
commit 859f31e407
2 changed files with 4 additions and 13 deletions

View File

@ -150,17 +150,6 @@ e_modapi_init(E_Module *m)
evry_view_help_init();
evry_gadget_init();
/* hack to get start icon right */
{
Evry_Plugin *p = evry_plugin_find("Start");
if (p)
{
Evry_Item *it = EVRY_ITEM(p);
eina_stringshare_replace(&it->icon, "start-here");
}
}
e_module_priority_set(m, -1000);
e_module_delayed_set(m, 1);

View File

@ -11,7 +11,6 @@ struct _Plugin
};
static Eina_List *plugins = NULL;
static const char _module_icon[] = "preferences-plugin";
static Evry_Type COLLECTION_PLUGIN;
static Plugin_Config plugin_config;
@ -139,7 +138,7 @@ _add_plugin(const char *name)
char path[4096];
char title[4096];
p = EVRY_PLUGIN_BASE(name, _module_icon, COLLECTION_PLUGIN,
p = EVRY_PLUGIN_BASE(name, NULL, COLLECTION_PLUGIN,
_begin, _finish, _fetch);
p->browse = &_browse;
@ -173,6 +172,8 @@ evry_plug_collection_init(void)
p = _add_plugin("Plugins");
p->begin = &_begin_all;
EVRY_ITEM_ICON_SET(p, "preferences-plugin");
if (evry_plugin_register(p, EVRY_PLUGIN_SUBJECT, 100))
{
p->config->aggregate = EINA_TRUE;
@ -183,6 +184,7 @@ evry_plug_collection_init(void)
EINA_LIST_FOREACH(evry_conf->collections, l, pc)
{
p = _add_plugin(pc->name);
EVRY_ITEM_ICON_SET(p, "start-here");
p->config = pc;
pc->plugin = p;