From 9facadc83229a1e486ff1fa0e055c5880cced1ac Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Mon, 10 Jan 2011 21:51:13 +0900 Subject: [PATCH] [elm_genlist.c] Temporary fix for elm_genlist_clear(). --- src/lib/elm_genlist.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index a02e194..f4893ca 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -2910,6 +2910,14 @@ elm_genlist_clear(Evas_Object *obj) Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; + /** this is temporary code **/ + Elm_Genlist_Item *it; + while ((it = elm_genlist_first_item_get(obj))) { + elm_genlist_item_del(it); + } + return; + /** this should be fixed **/ + wd->move_effect_mode = ELM_GENLIST_ITEM_MOVE_EFFECT_NONE; wd->pinchzoom_effect_mode = ELM_GENLIST_ITEM_PINCHZOOM_EFFECT_NONE; elm_smart_scroller_hold_set(wd->scr, 0); @@ -2924,8 +2932,6 @@ elm_genlist_clear(Evas_Object *obj) // ecore_timer_del(wd->item_moving_effect_timer); wd->item_moving_effect_timer = NULL; } - - if (wd->walking > 0) { Elm_Genlist_Item *it; -- 2.7.4