fixing sort order of executables: prefer .desktop when apps plugin is before exebuf

SVN revision: 50813
This commit is contained in:
Hannes Janetzek 2010-08-04 16:05:02 +00:00
parent 81963af8d8
commit f405dc931c
1 changed files with 3 additions and 2 deletions

View File

@ -255,7 +255,8 @@ _fetch_exe(Evry_Plugin *plugin, const char *input)
if (!strncmp(input, tmp, end))
{
if (query && (cnt++ < 50) && (len != tmp_len))
if (query && (cnt++ < 50) &&
(len != tmp_len))
_item_exe_add(p, tmp, 15);
if (!min || tmp_len < min)
@ -278,7 +279,7 @@ _fetch_exe(Evry_Plugin *plugin, const char *input)
EVRY_ITEM_LABEL_SET(it, file);
IF_RELEASE(p->command->file);
p->command->file = eina_stringshare_ref(it->label);
it->fuzzy_match = 10;
it->fuzzy_match = 11; // prefix match
EVRY_PLUGIN_ITEM_APPEND(p, it);
evry->item_changed(it, 0, 0);
}