- history: lower priority when context doesnt match
- update actions only when current item changed with update_matches
SVN revision: 48319
return 0;
}
-
static void
_evry_selector_update(Evry_Selector *sel)
{
Evry_State *s = sel->state;
Evry_Item *it = NULL;
-
+ Eina_Bool item_changed = EINA_FALSE;;
+
if (s)
{
it = s->cur_item;
if (s->plugin && (!it || s->item_auto_selected))
{
it = NULL;
-
+ item_changed = EINA_TRUE;
+
/* get first item */
if (!it && s->plugin->items)
{
edje_object_part_text_set(sel->o_main, "e.text.plugin", "");
}
- if (sel == selectors[0])
+ if (item_changed && sel == selectors[0])
{
sel = selectors[1];
if (sel->update_timer)
if (hi->plugin != it->plugin->name)
continue;
- if (ctxt != hi->context)
- continue;
-
- /* if (it->plugin->type == type_action)
- * {
- * if (hi->last_used > it->usage)
- * it->usage = hi->last_used;
- * } */
-
if (evry_conf->history_sort_mode == 0)
{
if (hi->last_used > it->usage)
it->usage = hi->last_used;
}
+
+ if (ctxt != hi->context)
+ it->usage /= 2.0;
+
}
if (it->usage > 0.0)