From 6a4d5b17121497ed6347df760376ce5d3a80d5dd Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Sat, 29 May 2010 17:18:17 +0000 Subject: [PATCH] calc: enable history again SVN revision: 49304 --- src/modules/everything-calc/e_mod_main.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/modules/everything-calc/e_mod_main.c b/src/modules/everything-calc/e_mod_main.c index 8e25505f7..10040eec2 100644 --- a/src/modules/everything-calc/e_mod_main.c +++ b/src/modules/everything-calc/e_mod_main.c @@ -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) {