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
This commit is contained in:
Jee-Yong Um 2015-05-18 17:09:19 +09:00 committed by ChunEon Park
parent e4e5ccb34d
commit a522fa1b99
1 changed files with 1 additions and 1 deletions

View File

@ -4218,7 +4218,7 @@ _eo_del_cb(void *data EINA_UNUSED, Eo *eo_item, const Eo_Event_Description *desc
Elm_Widget_Item_Data *item = eo_data_scope_get(eo_item, ELM_WIDGET_ITEM_CLASS);
ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, EINA_TRUE);
if (item->del_func)
item->del_func((void *)item->data, item->widget, item->eo_obj);
item->del_func((void *) WIDGET_ITEM_DATA_GET(item->eo_obj), item->widget, item->eo_obj);
return EINA_TRUE;
}