From: chanwook jung <jchanwook@gmail.com>
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 26 Dec 2011 05:32:40 +0000 (05:32 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 26 Dec 2011 05:32:40 +0000 (05:32 +0000)
Subject: [E-devel] [Patch] [genlist] modified _item_block_unrealize
postion in calc_job

Previously, group item did not unrealized at rotate.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66510 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_genlist.c

index 1d57b67..f4b8f94 100644 (file)
@@ -2043,7 +2043,7 @@ _item_block_unrealize(Item_Block *itb)
    evas_event_freeze(evas_object_evas_get(itb->wd->obj));
    EINA_LIST_FOREACH(itb->items, l, it)
      {
-        if (!it->group)
+        if (itb->must_recalc || !it->group)
           {
              if (it->dragging)
                {
@@ -2379,9 +2379,9 @@ _calc_job(void *data)
                     if (it->item->mincalcd) it->item->mincalcd = EINA_FALSE;
                   itb->changed = EINA_TRUE;
                   if (itb->must_recalc) did_must_recalc = EINA_TRUE;
+                  if (itb->realized) _item_block_unrealize(itb);
                   itb->must_recalc = EINA_FALSE;
                }
-             if (itb->realized) _item_block_unrealize(itb);
              showme = _item_block_recalc(itb, in, EINA_FALSE);
              chb = itb;
           }