/* get current 'context' ... */
for (i = 1; i < 3; i++)
{
- Evry_Item *item;
if (p->selector == selectors[i])
{
- item = selectors[i-1]->state->cur_item;
- context = item->context;
+ it = selectors[i-1]->state->cur_item;
+ if (it) context = it->context;
}
}
+ /* skip aggregator */
if (eina_list_data_find_list(s->cur_plugins, plugin))
lp = s->cur_plugins->next;
else
if (lp && lp->data && lp->data == plugin)
lp = s->cur_plugins->next;
+ /* if there is only one plugin append all items */
if ((lp) && (!lp->next))
{
pp = lp->data;
}
}
}
+ /* if there is input append all items that match or have
+ fuzzy_match set to -1 */
else if (input)
{
EINA_LIST_FOREACH(lp, l, pp)
}
}
}
+ /* always append items of action or object selector */
else if ((!input) &&
((p->selector == selectors[1]) ||
(p->selector == selectors[2])))
{
- /* always append items of action or object selector */
EINA_LIST_FOREACH(lp, l, pp)
{
if (!pp->aggregate) continue;
}
}
}
+ /* no input: append all items that are in history */
else
{
EINA_LIST_FOREACH(lp, l, pp)