summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-03-13 20:48:31 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-03-14 11:04:16 +0900
commit635b4ad8f3a2e131e681a05d673a6a577c95fcbe (patch)
treedaa4757b09fda541ca143d690b257bc6eb3fe915
parentab735ada77d47bf5416c7b05492cece5efcd1ecf (diff)
genlist: Make sure only one item is decorated
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
-rw-r--r--src/lib/elementary/elm_genlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 11124b3674..b408dbbbb3 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -5515,6 +5515,7 @@ _decorate_item_unset(Elm_Genlist_Data *sd)
5515 5515
5516 it = sd->mode_item; 5516 it = sd->mode_item;
5517 it->item->nocache_once = EINA_TRUE; 5517 it->item->nocache_once = EINA_TRUE;
5518 it->decorate_it_set = EINA_FALSE;
5518 5519
5519 snprintf(buf, sizeof(buf), "elm,state,%s,passive", sd->decorate_it_type); 5520 snprintf(buf, sizeof(buf), "elm,state,%s,passive", sd->decorate_it_type);
5520 snprintf(buf2, sizeof(buf2), "elm,state,%s,passive,finished", 5521 snprintf(buf2, sizeof(buf2), "elm,state,%s,passive,finished",