void ContextMenuControllerEfl::ContextMenuItemSelectedCallback(void* data,
Evas_Object* obj, void* event_info) {
Evas_Object* pop_up = obj;
-#if !defined(OS_TIZEN)
- // In desktop evas_object_data_get(obj) is not working because obj is not the object to which data was attached.
- // So get the parent, obj parent is internal box, box parent is the popup to which object was attached.
- // On target the obj that is obtained is the popup so the data is proper. Need to find why this difference?
- // Temp added this patch so as to work both on target and device.
- Evas_Object* list = elm_object_parent_widget_get(obj);
- pop_up = elm_object_parent_widget_get(list);
-#endif
ContextMenuControllerEfl* menu_controller =
static_cast<ContextMenuControllerEfl*>
(evas_object_data_get(pop_up, "ContextMenuContollerEfl"));