From 112e2e1639b9c2b3e08f6888152cbf626b231645 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 25 Mar 2011 04:27:47 +0000 Subject: [PATCH] From: Seunggyun Kim Subject: [E-devel] elm_genlist - bug fix about _update_job I found one bug in _update_job. Now, when the elm_genlist_item_update is called, all realized items have been updated. In _update_job logic, item block is recalculated if it->minw and itminw is not same. But before comparing that, itminw value is saved it->w. And it->minw value is saved in _item_realzie function. Then there are different between it->minw and itminw value. So the item block is recalculated and _item_block_position is called. After applying below patch, elm_genlist_item_update api updates only one item. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@58082 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_genlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 8521c53..7460c69 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -2267,8 +2267,8 @@ _update_job(void *data) { if (it->updateme) { - itminw = it->w; - itminh = it->h; + itminw = it->minw; + itminh = it->minh; it->updateme = EINA_FALSE; if (it->realized) -- 2.7.4