diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-03-11 15:31:01 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-03-11 15:31:01 +0900 |
commit | acb17c0c6f19f526228ac8743abfbb468ce9bf92 (patch) | |
tree | 674ac17305172a34603b2ad3d5cdd135ea001e24 | |
parent | c1e79abe4b8fa71d62e0fab8a808475cbf8499fb (diff) | |
download | elementary-1.14.tar.gz |
Revert "elm - genlist item - index get start from 0 - unbreak api break"elementary-1.14
This reverts commit c1e79abe4b8fa71d62e0fab8a808475cbf8499fb.
-rw-r--r-- | src/lib/elm_genlist.c | 2 | ||||
-rw-r--r-- | 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 cd7eac15e..d351f28cf 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -7134,7 +7134,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 32df599db..80984ab94 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) /*@ Get the index of the item. It is only valid once displayed. - The index start from 0. + The index start from 1. @ingroup Genlist */ |