everything text plugin: only create item, when there is input

SVN revision: 45808
This commit is contained in:
Hannes Janetzek 2010-02-02 16:15:51 +00:00
parent e609c39dbc
commit 8935019960
1 changed files with 9 additions and 5 deletions

View File

@ -15,14 +15,18 @@ static int
_fetch(Evry_Plugin *p, const char *input)
{
Evry_Item *it;
EVRY_PLUGIN_ITEMS_FREE(p);
it = evry_item_new(NULL, p, input, NULL);
EVRY_PLUGIN_ITEMS_FREE(p);
EVRY_PLUGIN_ITEM_APPEND(p, it);
if (input)
{
it = evry_item_new(NULL, p, input, NULL);
EVRY_PLUGIN_ITEM_APPEND(p, it);
return 1;
return 1;
}
return 0;
}
static Eina_Bool