genlist: Make sure only one item is decorated
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 13 Mar 2017 11:48:31 +0000 (20:48 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 14 Mar 2017 02:04:16 +0000 (11:04 +0900)
In "Genlist Decorate Item Mode" after decorating a few items
(rotate or slide, doesn't matter), only one item or none should
be decorated. Scrolling up and down the genlist should work just
fine. This fixes massive render issues and inconsistent states
of the items in this test case.

"rotate" mode is still going nuts.

Ref T1551

src/lib/elementary/elm_genlist.c

index 11124b3..b408dbb 100644 (file)
@@ -5515,6 +5515,7 @@ _decorate_item_unset(Elm_Genlist_Data *sd)
 
    it = sd->mode_item;
    it->item->nocache_once = EINA_TRUE;
+   it->decorate_it_set = EINA_FALSE;
 
    snprintf(buf, sizeof(buf), "elm,state,%s,passive", sd->decorate_it_type);
    snprintf(buf2, sizeof(buf2), "elm,state,%s,passive,finished",