forked from enlightenment/enlightenment
sort non-toplevel plugins in aggregator correctly
SVN revision: 48804
This commit is contained in:
parent
17068bceb3
commit
dcfbbb0799
|
@ -1305,7 +1305,10 @@ _plugins_init(const Evry_API *api)
|
|||
_recentf_begin, _finish, _recentf_fetch);
|
||||
p->browse = &_recentf_browse;
|
||||
if (evry->plugin_register(p, EVRY_PLUGIN_SUBJECT, 3))
|
||||
{
|
||||
p->config->top_level = EINA_FALSE;
|
||||
p->config->min_query = 3;
|
||||
}
|
||||
|
||||
PLUGIN_NEW(N_("Recent Files"), _module_icon,
|
||||
_recentf_begin, _finish, _recentf_fetch);
|
||||
|
|
|
@ -102,10 +102,16 @@ _fetch(Evry_Plugin *plugin, const char *input)
|
|||
if (!pp->items)
|
||||
continue;
|
||||
|
||||
it->fuzzy_match = evry_fuzzy_match(it->label, input);
|
||||
|
||||
it->hi = NULL;
|
||||
it->usage = 0;
|
||||
it->fuzzy_match = 0;
|
||||
|
||||
if (input)
|
||||
{
|
||||
evry_history_item_usage_set(it, NULL, NULL);
|
||||
it->usage /= 2.0;
|
||||
it->fuzzy_match = 5;
|
||||
}
|
||||
|
||||
snprintf(buf, sizeof(buf), "%d %s", eina_list_count(pp->items), _("Items"));
|
||||
if (it->detail)
|
||||
|
@ -253,7 +259,7 @@ evry_plug_aggregator_new(Evry_Selector *sel, int type)
|
|||
Evry_Plugin *p;
|
||||
|
||||
p = EVRY_PLUGIN_NEW(Plugin, N_("All"), NULL, 0, NULL, _finish, _fetch, _free);
|
||||
p->history = EINA_FALSE;
|
||||
|
||||
if (evry_plugin_register(p, type, -1))
|
||||
{
|
||||
p->config->view_mode = VIEW_MODE_THUMB;
|
||||
|
|
Loading…
Reference in New Issue