calc: enable history again

SVN revision: 49304
This commit is contained in:
Hannes Janetzek 2010-05-29 17:18:17 +00:00
parent 6c2d69f724
commit 6a4d5b1712
1 changed files with 9 additions and 9 deletions

View File

@ -77,18 +77,18 @@ _cleanup(Evry_Plugin *p)
{
Ecore_Event_Handler *h;
Evry_Item *it;
/* int items = 10; */
int items = 10;
/* if (p->items)
* {
* EVRY_ITEM_FREE(p->items->data);
* p->items = eina_list_remove_list(p->items, p->items);
* } */
if (p->items)
{
EVRY_ITEM_FREE(p->items->data);
p->items = eina_list_remove_list(p->items, p->items);
}
EINA_LIST_FREE(p->items, it)
{
/* if (items-- > 1)
* history = eina_list_prepend(history, eina_stringshare_add(it->label)); */
if (items-- > 1)
history = eina_list_prepend(history, eina_stringshare_add(it->label));
EVRY_ITEM_FREE(it);
}
@ -117,7 +117,7 @@ _cb_action_performed(void *data, int type, void *event)
if (!p->items)
return 1;
/* remove duplicates */
if (p->items->next)
{