From 3fdac862a5795f31c738586e02dd3336497d39b6 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sat, 30 Oct 2010 17:19:10 +0900 Subject: [PATCH] [elm_genlist.c] Refactoring. + Removed unused function : _set_groupitem() + Indentation fixed : elm_genlist_item_del() --- src/lib/elm_genlist.c | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 5df7d7c..32cfe07 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1316,16 +1316,6 @@ _signal_contract(void *data, Evas_Object *obj __UNUSED__, const char *emission _ } static void -_set_groupitem( Elm_Genlist_Item *it, Elm_Genlist_GroupItem *git) -{ - if(it && git ) - { - it->group_item = git; - git->items = eina_list_append(git->items, it); - } -} - -static void _group_item_click_cb(void *data, Evas_Object *obj __UNUSED__, const char *emission __UNUSED__, const char *source __UNUSED__) { Elm_Genlist_GroupItem *git = data; @@ -4526,19 +4516,20 @@ elm_genlist_item_del(Elm_Genlist_Item *it) if (!it) return; if ((it->relcount > 0) || (it->walking > 0)) { - elm_genlist_item_subitems_clear(it); - it->delete_me = EINA_TRUE; - if (it->wd->show_item == it) it->wd->show_item = NULL; - if (it->selected) it->wd->selected = eina_list_remove(it->wd->selected, it); - if (it->block) - { - if (it->realized) _item_unrealize(it); - it->block->changed = EINA_TRUE; - if (it->wd->calc_job) ecore_job_del(it->wd->calc_job); - it->wd->calc_job = ecore_job_add(_calc_job, it->wd); - } - if (it->itc->func.del) it->itc->func.del(it->data, it->wd->obj); - return; + elm_genlist_item_subitems_clear(it); + it->delete_me = EINA_TRUE; + if (it->wd->show_item == it) it->wd->show_item = NULL; + if (it->selected) it->wd->selected = eina_list_remove(it->wd->selected, it); + if (it->block) + { + if (it->realized) _item_unrealize(it); + it->block->changed = EINA_TRUE; + if (it->wd->calc_job) ecore_job_del(it->wd->calc_job); + it->wd->calc_job = ecore_job_add(_calc_job, it->wd); + } + if (it->itc->func.del) + it->itc->func.del((void *)it->base.data, it->base.widget); + return; } _item_del(it); } -- 2.7.4