From: Daniel Juyung Seo Date: Tue, 25 Jan 2011 05:14:43 +0000 (+0900) Subject: [elm_genlist.c] Added nocache feature. X-Git-Tag: REL_I9200_20110603-1~440^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57831b44ad0f081cf2a5c41b9304824b4260987a;p=framework%2Fuifw%2Felementary.git [elm_genlist.c] Added nocache feature. --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 6bc616a..c74c92f 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -451,6 +451,7 @@ struct _Elm_Genlist_Item Eina_Bool down : 1; Eina_Bool dragging : 1; Eina_Bool updateme : 1; + Eina_Bool nocache : 1; // TODO: refactoring Eina_Bool move_effect_me : 1; @@ -1834,11 +1835,14 @@ _item_realize(Elm_Genlist_Item *it, const char *treesize; char buf[1024]; int depth, tsize = 20; - Item_Cache *itc; + Item_Cache *itc = NULL; it->order_num_in = in; - itc = _item_cache_find(it); + if (it->nocache) + it->nocache = EINA_FALSE; + else + itc = _item_cache_find(it); if (!it->wd->effect_mode && itc) { it->base.view = itc->base_view; @@ -2107,7 +2111,7 @@ _item_unrealize(Elm_Genlist_Item *it) ecore_timer_del(it->long_timer); it->long_timer = NULL; } - if (it->sweeped || it->wassweeped) + if ((it->sweeped) || (it->wassweeped) || (it->nocache)) { it->sweeped = EINA_FALSE; it->wassweeped = EINA_FALSE; @@ -4596,6 +4600,7 @@ elm_genlist_item_item_class_update(Elm_Genlist_Item *it, EINA_SAFETY_ON_NULL_RETURN(itc); if (it->delete_me) return; it->itc = itc; + it->nocache = EINA_TRUE; elm_genlist_item_update(it); }