From: Jiyoun Park Date: Mon, 22 Aug 2011 19:04:57 +0000 (+0900) Subject: [*][Elm_genlist] add changeme flag for proper update X-Git-Tag: REL_F_I9200_20110826_1~8^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=361beadabbec17e4d6e40ff149d755574bfe1666;p=framework%2Fuifw%2Felementary.git [*][Elm_genlist] add changeme flag for proper update genlist's update job and chaged job function share same flag(updateme) it cause problem when each function try to use updateme flage same time so I add new flag Change-Id: Ic56ff48a8e281f6f1d89e8911ef810b0a8bf44f8 --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 3764217..c10114b 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -101,6 +101,7 @@ struct _Item_Block Eina_Bool realized : 1; Eina_Bool changed : 1; Eina_Bool updateme : 1; + Eina_Bool changeme : 1; Eina_Bool showme : 1; Eina_Bool must_recalc : 1; }; @@ -2373,7 +2374,7 @@ _changed_size_hints(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, Elm_Genlist_Item *it = data; if (!it) return; it->mincalcd = EINA_FALSE; - it->block->updateme = EINA_TRUE; + it->block->changeme = EINA_TRUE; if (it->wd->changed_job) ecore_job_del(it->wd->changed_job); it->wd->changed_job = ecore_job_add(_changed_job, it->wd); } @@ -2633,7 +2634,7 @@ _changed_job(void *data) Evas_Coord itminw, itminh; Elm_Genlist_Item *it; - if (!itb->updateme) + if (!itb->changeme) { num += itb->count; if (position) @@ -2682,7 +2683,7 @@ _changed_job(void *data) } num++; } - itb->updateme = EINA_FALSE; + itb->changeme = EINA_FALSE; // TODO: why this is separated. if (height_changed) {