summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-20 10:50:39 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-20 10:50:39 +0000
commit21da0e181567211b8eaa3904f120fdda9639dfe6 (patch)
tree709cc0128257ae0b154dc398b81a6519b964af03
parent324cc97a9fadb3ede76e614fca2ddc7d1096d894 (diff)
elm genlist: Use Widget_Data variable for convenience.
SVN revision: 70357
-rw-r--r--src/lib/elm_genlist.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index bb03f66a1..4505d9703 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -856,23 +856,24 @@ static void
856_item_del(Elm_Gen_Item *it) 856_item_del(Elm_Gen_Item *it)
857{ 857{
858 Evas_Object *obj = WIDGET(it); 858 Evas_Object *obj = WIDGET(it);
859 Widget_Data *wd = it->wd;
859 860
860 evas_event_freeze(evas_object_evas_get(obj)); 861 evas_event_freeze(evas_object_evas_get(obj));
861 elm_genlist_item_subitems_clear((Elm_Object_Item *)it); 862 elm_genlist_item_subitems_clear((Elm_Object_Item *)it);
862 if (it->wd->show_item == it) it->wd->show_item = NULL; 863 if (wd->show_item == it) wd->show_item = NULL;
863 if (it->realized) _elm_genlist_item_unrealize(it, EINA_FALSE); 864 if (it->realized) _elm_genlist_item_unrealize(it, EINA_FALSE);
864 if (it->item->decorate_all_item_realized) _decorate_all_item_unrealize(it); 865 if (it->item->decorate_all_item_realized) _decorate_all_item_unrealize(it);
865 if (it->item->block) _item_block_del(it); 866 if (it->item->block) _item_block_del(it);
866 if (it->item->queued) 867 if (it->item->queued)
867 it->wd->queue = eina_list_remove(it->wd->queue, it); 868 wd->queue = eina_list_remove(wd->queue, it);
868 if (it->wd->anchor_item == it) 869 if (wd->anchor_item == it)
869 { 870 {
870 it->wd->anchor_item = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next); 871 wd->anchor_item = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->next);
871 if (!it->wd->anchor_item) 872 if (!wd->anchor_item)
872 it->wd->anchor_item = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev); 873 wd->anchor_item = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev);
873 } 874 }
874 if (it->wd->expanded_item == it) it->wd->expanded_item = NULL; 875 if (wd->expanded_item == it) wd->expanded_item = NULL;
875 if (it->wd->expanded_next_item == it) it->wd->expanded_next_item = NULL; 876 if (wd->expanded_next_item == it) wd->expanded_next_item = NULL;
876 if (it->parent) 877 if (it->parent)
877 it->parent->item->items = eina_list_remove(it->parent->item->items, it); 878 it->parent->item->items = eina_list_remove(it->parent->item->items, it);
878 if (it->item->swipe_timer) 879 if (it->item->swipe_timer)