From: Seunggyun Kim <sgyun.kim@samsung.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 25 Mar 2011 04:27:47 +0000 (04:27 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 25 Mar 2011 04:27:47 +0000 (04:27 +0000)
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: https://svn.enlightenment.org/svn/e/trunk/elementary@58082 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_genlist.c

index 8521c53..7460c69 100644 (file)
@@ -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)