summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:30:07 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:30:07 +0900
commit9116634fb3cf3c66dd0da5197c25aed61ff0aed7 (patch)
tree0eddd4a033ba87144d3680796f90e380d5edbd66
parent2155eecb586888c70e7356eaa12f15c323e0077b (diff)
Revert "elm - genlist item - index get start from 0 - unbreak api break"
This reverts commit 2155eecb586888c70e7356eaa12f15c323e0077b.
-rw-r--r--src/lib/elm_genlist.c2
-rw-r--r--src/lib/elm_genlist_item.eo2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index c51e62ee9..538e95491 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -7300,7 +7300,7 @@ elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *eo_it)
7300EOLIAN static int 7300EOLIAN static int
7301_elm_genlist_item_index_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it) 7301_elm_genlist_item_index_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
7302{ 7302{
7303 int cnt = 0; 7303 int cnt = 1;
7304 Elm_Gen_Item *tmp; 7304 Elm_Gen_Item *tmp;
7305 ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, -1); 7305 ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, -1);
7306 7306
diff --git a/src/lib/elm_genlist_item.eo b/src/lib/elm_genlist_item.eo
index abaf1e00b..695296ee9 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)
170 get { 170 get {
171 [[Get the index of the item. It is only valid once displayed. 171 [[Get the index of the item. It is only valid once displayed.
172 172
173 The index start from 0. 173 The index start from 1.
174 ]] 174 ]]
175 } 175 }
176 values { 176 values {