genlist - don't do heavy queue work for 0 width genlists and defer fill
authorViacheslav Lvov <v.lvov@samsung.com>
Fri, 6 Dec 2013 07:08:09 +0000 (16:08 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Fri, 6 Dec 2013 07:08:09 +0000 (16:08 +0900)
commit332cdd1e7c02a4f784a51a0af350e87dfd7c808b
tree619212b738cbca58d2fa384d6b273e92a668efa6
parent7ace0215f699a5d59093e3ec56b888d4f67e4819
genlist - don't do heavy queue work for 0 width genlists and defer fill

Scenario:
1. Create elm_genlist.
2. Add some items to it.
3. Do not resize the genlist and leave it with width == 0.

PROPOSAL:
1. When the element is queued for recalculation check current width of
widget. If it is equal to 0 do not add idle enterer.
2. In smart callback on resize check if queue of items that need
recalculation is not empty and new width is not 0. In this situation
add idle enterer.
legacy/elementary/src/lib/elm_genlist.c