From 9c26cdf25a8970be8e2412268f453b5f18fa62ee Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Thu, 19 Mar 2015 16:40:18 +0900 Subject: [PATCH] elm_widget: fix wrong parmeter. The parameter what the application gets should Elm_Object_Item. @fix --- legacy/elementary/src/lib/elm_widget.c | 4 ++-- legacy/elementary/src/lib/elm_widget.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c index 39e3c32..974677e 100644 --- a/legacy/elementary/src/lib/elm_widget.c +++ b/legacy/elementary/src/lib/elm_widget.c @@ -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); diff --git a/legacy/elementary/src/lib/elm_widget.h b/legacy/elementary/src/lib/elm_widget.h index 96a9444..a789e2a 100644 --- a/legacy/elementary/src/lib/elm_widget.h +++ b/legacy/elementary/src/lib/elm_widget.h @@ -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; -- 2.7.4