raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=3acacee508949fa6057fd083b1019b75ce5df6c4

commit 3acacee508949fa6057fd083b1019b75ce5df6c4
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Fri Mar 11 15:29:03 2016 +0900

    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.
---
 src/lib/elm_genlist.c       | 2 +-
 src/lib/elm_genlist_item.eo | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 70711cd..3de17bd 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -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);
 
diff --git a/src/lib/elm_genlist_item.eo b/src/lib/elm_genlist_item.eo
index e8fd4d5..5a966c0 100644
--- a/src/lib/elm_genlist_item.eo
+++ b/src/lib/elm_genlist_item.eo
@@ -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 {

-- 


Reply via email to