summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:29:03 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-03-11 15:32:34 +0900
commit3acacee508949fa6057fd083b1019b75ce5df6c4 (patch)
treeaf0eb01f66e0bc842efc13c56b351a5c8890fc1f
parent6d24f2b9f22bfff77aaf85cf424de9d0c9ceed99 (diff)
downloadelementary-3acacee508949fa6057fd083b1019b75ce5df6c4.tar.gz
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.
-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 70711cdd7..3de17bdde 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 e8fd4d5e9..5a966c0af 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 {