[Image Slider] Change the arguement of API. sbs-working-i386
authorMyoungWoon Roy Kim <myoungwoon.kim@samsung.com>
Fri, 12 Nov 2010 05:22:44 +0000 (14:22 +0900)
committerMyoungWoon Roy Kim <myoungwoon.kim@samsung.com>
Fri, 12 Nov 2010 05:22:44 +0000 (14:22 +0900)
src/lib/Elementary.h.in
src/lib/elm_imageslider.c

index 7fd436f..01af49c 100644 (file)
@@ -2671,7 +2671,7 @@ extern "C" {
    typedef void (*Elm_Imageslider_Cb)(void *data, Evas_Object *obj, void *event_info);
    EAPI Evas_Object           *elm_imageslider_add(Evas_Object *parent);
    EAPI Elm_Imageslider_Item  *elm_imageslider_item_append(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, void *data);
-   EAPI Elm_Imageslider_Item  *elm_imageslider_item_append_relative(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, unsigned int n, void *data);
+   EAPI Elm_Imageslider_Item  *elm_imageslider_item_append_relative(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, unsigned int index, void *data);
    EAPI Elm_Imageslider_Item  *elm_imageslider_item_prepend(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, void *data);
    EAPI void                   elm_imageslider_item_del(Elm_Imageslider_Item *it);
    EAPI Elm_Imageslider_Item  *elm_imageslider_selected_item_get(Evas_Object *obj);
index 983c039..d73e03b 100644 (file)
@@ -871,7 +871,7 @@ elm_imageslider_item_append(Evas_Object * obj, const char * photo_file, Elm_Imag
 * @ingroup     Imageslider
 */
 EAPI Elm_Imageslider_Item *
-elm_imageslider_item_append_relative(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, unsigned int n, void *data)
+elm_imageslider_item_append_relative(Evas_Object *obj, const char *photo_file, Elm_Imageslider_Cb func, unsigned int index, void *data)
 {
        ELM_CHECK_WIDTYPE(obj, widtype) NULL;
        Widget_Data *wd;
@@ -891,7 +891,7 @@ elm_imageslider_item_append_relative(Evas_Object *obj, const char *photo_file, E
        it->func = func;
        it->data = data;
 
-       wd->its = eina_list_append_relative(wd->its, it, eina_list_nth(wd->its, n-2));
+       wd->its = eina_list_append_relative(wd->its, it, eina_list_nth(wd->its, index-2));
 
        if (!wd->cur) wd->cur = wd->its;