elm_widget: fix wrong parmeter.
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Thu, 19 Mar 2015 07:40:18 +0000 (16:40 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Thu, 19 Mar 2015 07:47:24 +0000 (16:47 +0900)
The parameter what the application gets should Elm_Object_Item.

@fix

legacy/elementary/src/lib/elm_widget.c
legacy/elementary/src/lib/elm_widget.h

index 39e3c32..974677e 100644 (file)
@@ -5119,7 +5119,7 @@ _elm_widget_item_signal_emit(Eo *eo_item EINA_UNUSED,
 }
 
 EOLIAN static void
-_elm_widget_item_signal_callback_add(Eo *eo_item EINA_UNUSED,
+_elm_widget_item_signal_callback_add(Eo *eo_item,
                                      Elm_Widget_Item_Data *item,
                                      const char *emission,
                                      const char *source,
@@ -5135,7 +5135,7 @@ _elm_widget_item_signal_callback_add(Eo *eo_item EINA_UNUSED,
    wisd = malloc(sizeof(Elm_Widget_Item_Signal_Data));
    if (!wisd) return;
 
-   wisd->item = item;
+   wisd->item = eo_item;
    wisd->func = (Elm_Widget_Item_Signal_Cb)func;
    wisd->data = data;
    wisd->emission = eina_stringshare_add(emission);
index 96a9444..a789e2a 100644 (file)
@@ -466,7 +466,7 @@ typedef Evas_Object          *(*Elm_Widget_Content_Unset_Cb)(const void *data, c
 typedef void                  (*Elm_Widget_Signal_Emit_Cb)(void *data, const char *emission, const char *source);
 typedef void                  (*Elm_Widget_Disable_Cb)(void *data);
 typedef Eina_Bool             (*Elm_Widget_Del_Pre_Cb)(void *data);
-typedef void                  (*Elm_Widget_Item_Signal_Cb)(void *data, Elm_Widget_Item_Data *item, const char *emission, const char *source);
+typedef void                  (*Elm_Widget_Item_Signal_Cb)(void *data, Elm_Object_Item *item, const char *emission, const char *source);
 typedef void                  (*Elm_Widget_Style_Set_Cb)(void *data, const char *style);
 typedef const char           *(*Elm_Widget_Style_Get_Cb)(const void *data);
 typedef void                  (*Elm_Widget_Focus_Set_Cb)(void *data, Eina_Bool focused);
@@ -569,7 +569,7 @@ EINA_DEPRECATED EAPI Elm_Access_Info *_elm_access_object_get(const Evas_Object *
 
 struct _Elm_Widget_Item_Signal_Data
 {
-   Elm_Widget_Item_Data *item;
+   Elm_Object_Item *item;
    Elm_Widget_Item_Signal_Cb func;
    const char *emission;
    const char *source;