genlist: (Mostly) fix item index odd/even styles
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 23 Feb 2017 08:10:16 +0000 (17:10 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 27 Feb 2017 00:26:41 +0000 (09:26 +0900)
commitbb38083287b963a63439f87a619ba514d89ded9c
treeb8ef893fdaec5edc1203af3f1bd398d38bfd496d
parent519b782ff297ddacd03b34d5d20ca90f0d9b5861
genlist: (Mostly) fix item index odd/even styles

This fixes the internal item order index.

Note that groups don't reset the odd/even styles. The
original code wasn't very clear on the intent (setting
to 0 in one case, not increasing the counter in another,
but that was not consistent all over the place). I believe
resetting the odd/even styles at a group boundary would
look great, but this might be for another patch :)

This amends part of another commit, but keeps its feature:
 b40a6eb85bf44a genlist: implement list position signals.

See T3086

PS: I've discovered more odd/even issues with the
    fileselector in particular. Still working on it...

@fix
src/lib/elementary/elm_genlist.c
src/lib/elementary/elm_widget_genlist.h