Revert "elm - genlist item - index get start from 0 - unbreak api break"

This reverts commit 22eefc9626e15e78612396a9c7adca89ffc228e2.

ok - so equation changed. tizen 2.3 did ship with index starting at
1, so back to 1 (ugh - ugly). so apparently we have switch between 0
and 1 over history at various points (and no one in efl land uses this
api so we dont see it). but given that the largest userbase of efl atm
starts at 1 - we'll leave it there.
This commit is contained in:
Carsten Haitzler 2016-03-11 15:29:03 +09:00
parent a0980e15f1
commit 23546c3c7f
2 changed files with 2 additions and 2 deletions

View File

@ -7333,7 +7333,7 @@ elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *eo_it)
EOLIAN static int
_elm_genlist_item_index_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
{
int cnt = 0;
int cnt = 1;
Elm_Gen_Item *tmp;
ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, -1);

View File

@ -170,7 +170,7 @@ class Elm.Genlist_Item(Elm.Widget_Item)
get {
[[Get the index of the item. It is only valid once displayed.
The index start from 0.
The index start from 1.
]]
}
values {