'everything'

- cleanups


SVN revision: 42190
This commit is contained in:
Hannes Janetzek 2009-09-02 19:46:12 +00:00
parent abc42d6a2a
commit 8d85504a49
1 changed files with 10 additions and 12 deletions

View File

@ -465,22 +465,20 @@ _fetch(Evry_Plugin *plugin, const char *input)
EINA_LIST_FOREACH(exe_list, l, file)
{
if (!strncmp(file, input, len))
/* && (!space || (strlen(file) == len))) */
{
app = _item_add(p, NULL, file, 100);
if (app)
if (!app) continue;
eina_stringshare_del(EVRY_ITEM(app)->label);
if (!space)
EVRY_ITEM(app)->label = eina_stringshare_add(file);
else
{
eina_stringshare_del(EVRY_ITEM(app)->label);
if (!space)
EVRY_ITEM(app)->label = eina_stringshare_add(file);
else
{
snprintf(buf, sizeof(buf), "%s%s", file, space);
EVRY_ITEM(app)->label = eina_stringshare_add(buf);
eina_stringshare_del(app->file);
app->file = eina_stringshare_add(buf);
}
snprintf(buf, sizeof(buf), "%s%s", file, space);
EVRY_ITEM(app)->label = eina_stringshare_add(buf);
eina_stringshare_del(app->file);
app->file = eina_stringshare_add(buf);
}
}
}