elm,evas: Remove use of EFL_CANVAS_OBJECT_EVENT_DEL

This event should not be exposed at all, it's not necessary
anymore, EFL_EVENT_DEL already exists and should be good enough.

This does move the callback call a little bit ealier in the del
process, but at first glance, this shouldn't have any impact.
This commit is contained in:
Jean-Philippe Andre 2016-08-19 15:38:25 +09:00
parent 834794ed84
commit b325097e71
3 changed files with 6 additions and 6 deletions

View File

@ -109,10 +109,10 @@ static void
_propagate_event(void *data, const Eo_Event *event);
EFL_CALLBACKS_ARRAY_DEFINE(elm_widget_subitems_callbacks,
{ EFL_CANVAS_OBJECT_EVENT_DEL, _on_sub_obj_del },
{ EFL_EVENT_DEL, _on_sub_obj_del },
{ EFL_GFX_EVENT_HIDE, _on_sub_obj_hide });
EFL_CALLBACKS_ARRAY_DEFINE(efl_subitems_callbacks,
{ EFL_CANVAS_OBJECT_EVENT_DEL, _on_sub_obj_del });
{ EFL_EVENT_DEL, _on_sub_obj_del });
EFL_CALLBACKS_ARRAY_DEFINE(focus_callbacks,
{ EFL_EVENT_KEY_DOWN, _propagate_event },
{ EFL_EVENT_KEY_UP, _propagate_event },
@ -4444,7 +4444,7 @@ EFL_CALLBACKS_ARRAY_DEFINE(tracker_callbacks,
{ EFL_GFX_EVENT_MOVE, _track_obj_view_update },
{ EFL_GFX_EVENT_SHOW, _track_obj_view_update },
{ EFL_GFX_EVENT_HIDE, _track_obj_view_update },
{ EFL_CANVAS_OBJECT_EVENT_DEL, _track_obj_view_del });
{ EFL_EVENT_DEL, _track_obj_view_del });
static void
_track_obj_view_del(void *data, const Eo_Event *event EINA_UNUSED)

View File

@ -265,7 +265,7 @@ _on_child_hints_changed(void *data, const Eo_Event *event EINA_UNUSED)
}
EFL_CALLBACKS_ARRAY_DEFINE(evas_object_table_callbacks,
{ EFL_CANVAS_OBJECT_EVENT_DEL, _on_child_del },
{ EFL_EVENT_DEL, _on_child_del },
{ EFL_GFX_EVENT_CHANGE_SIZE_HINTS, _on_child_hints_changed }
);

View File

@ -7633,7 +7633,7 @@ _obstacle_del_cb(void *data, const Eo_Event *event)
static void
_obstacle_clear(Eo *eo_obj, Evas_Textblock_Obstacle *obs)
{
efl_event_callback_del(obs->eo_obs, EFL_CANVAS_OBJECT_EVENT_DEL, _obstacle_del_cb, eo_obj);
efl_event_callback_del(obs->eo_obs, EFL_EVENT_DEL, _obstacle_del_cb, eo_obj);
}
static void
@ -7669,7 +7669,7 @@ _efl_canvas_text_obstacle_add(Eo *eo_obj,
if (!obs) return EINA_FALSE;
obs->eo_obs = eo_obs;
efl_event_callback_add(eo_obs, EFL_CANVAS_OBJECT_EVENT_DEL, _obstacle_del_cb, eo_obj);
efl_event_callback_add(eo_obs, EFL_EVENT_DEL, _obstacle_del_cb, eo_obj);
obj->obstacles = eina_list_append(obj->obstacles, obs);
_obstacle_update(obs, eo_obj);