summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:31:19 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:31:19 +0900
commit6f35fb9b636f8b600ce41b7e5c2c804fd02bffe1 (patch)
treeaea99df94ceb27d9009adbca131aab93231cbaa5
parent8b8eb61bde425ec8c7443845445f22b91f840a70 (diff)
Revert "elm - genlist item - index get start from 0 - unbreak api break"elementary-1.13
This reverts commit 8b8eb61bde425ec8c7443845445f22b91f840a70.
-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 8d263c4bb..e55687652 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -7062,7 +7062,7 @@ elm_genlist_item_cursor_engine_only_get(const Elm_Object_Item *eo_it)
7062EOLIAN static int 7062EOLIAN static int
7063_elm_genlist_item_index_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it) 7063_elm_genlist_item_index_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
7064{ 7064{
7065 int cnt = 0; 7065 int cnt = 1;
7066 Elm_Gen_Item *tmp; 7066 Elm_Gen_Item *tmp;
7067 ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, -1); 7067 ELM_GENLIST_ITEM_CHECK_OR_RETURN(it, -1);
7068 7068
diff --git a/src/lib/elm_genlist_item.eo b/src/lib/elm_genlist_item.eo
index fdfb6e527..34a6179ca 100644
--- a/src/lib/elm_genlist_item.eo
+++ b/src/lib/elm_genlist_item.eo
@@ -169,7 +169,7 @@ class Elm_Genlist_Item(Elm_Widget_Item)
169 /*@ 169 /*@
170 Get the index of the item. It is only valid once displayed. 170 Get the index of the item. It is only valid once displayed.
171 171
172 The index start from 0. 172 The index start from 1.
173 173
174 @ingroup Genlist 174 @ingroup Genlist
175 */ 175 */