Elementary genlist: Avoid bringing/showing items in a queue.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 13 Apr 2011 01:48:11 +0000 (01:48 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 13 Apr 2011 01:48:11 +0000 (01:48 +0000)
Items in a queue were not added to blocks yet. So it's impossible to
calculate its position.

git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@58612 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_genlist.c

index bd7ac68..7a9bb91 100644 (file)
@@ -2180,7 +2180,7 @@ _calc_job(void *data)
         itb->h = itb->minh;
         y += itb->h;
         in += itb->count;
-        if ((showme) && (wd->show_item))
+        if ((showme) && (wd->show_item) && (!wd->show_item->queued))
           {
              wd->show_item->showme = EINA_FALSE;
              if (wd->bring_in)