summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:30:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:30:41 +0900
commite996330423b3a5581d31550a1bb487924b5008bb (patch)
treef6b933e06cca3ad9c94baa20a545b8534a6756cc
parent0e977c83bd40515bdfbf6fd56079f916c286ce0e (diff)
downloadelementary-1.15.tar.gz
Revert "elm - genlist item - index get start from 0 - unbreak api break"elementary-1.15
This reverts commit 0e977c83bd40515bdfbf6fd56079f916c286ce0e.
-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 aae1e0589..22b5de134 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -7237,7 +7237,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 a3cb674d7..d78a06d47 100644
--- a/src/lib/elm_genlist_item.eo
+++ b/src/lib/elm_genlist_item.eo
@@ -206,7 +206,7 @@ class Elm.Genlist_Item(Elm.Widget_Item)
/*@
Get the index of the item. It is only valid once displayed.
- The index start from 0.
+ The index start from 1.
@ingroup Genlist
*/