summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2015-05-18 17:09:19 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-05-18 17:10:09 +0900
commitbad260ad7bacd4c6a1a3c94c40c2b7fbbfa6fcee (patch)
tree4a232c5206eb0cf8bdbebaf2ae546ffeddf57d4b
parentda652191a7c90262af014f39a77ea0a025ad67ef (diff)
elm_object_item: fix the issue that del_cb doens't get item data as its parameter
Summary: elm_object_item_del_cb_set() can set delete callback that is called on item deletion. Del_cb, Evas_Smart_Cb, has void pointer for item data as its first parameter. However, getting item data is broken. @fix Reviewers: Hermet Reviewed By: Hermet Subscribers: Hermet Differential Revision: https://phab.enlightenment.org/D2524
-rw-r--r--src/lib/elm_widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 27221d55b..e4deaf6f1 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -4218,7 +4218,7 @@ _eo_del_cb(void *data EINA_UNUSED, Eo *eo_item, const Eo_Event_Description *desc
4218 Elm_Widget_Item_Data *item = eo_data_scope_get(eo_item, ELM_WIDGET_ITEM_CLASS); 4218 Elm_Widget_Item_Data *item = eo_data_scope_get(eo_item, ELM_WIDGET_ITEM_CLASS);
4219 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_TRUE); 4219 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_TRUE);
4220 if (item->del_func) 4220 if (item->del_func)
4221 item->del_func((void *)item->data, item->widget, item->eo_obj); 4221 item->del_func((void *) WIDGET_ITEM_DATA_GET(item->eo_obj), item->widget, item->eo_obj);
4222 return EINA_TRUE; 4222 return EINA_TRUE;
4223} 4223}
4224 4224