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