evas: reindent code properly.

This commit is contained in:
Cedric Bail 2018-05-12 22:16:09 -07:00 committed by Cedric BAIL
parent e1d41eef3a
commit 4479d035be
1 changed files with 24 additions and 21 deletions

View File

@ -1247,7 +1247,6 @@ EOLIAN static void
_efl_canvas_object_efl_object_invalidate(Eo *eo_obj, Evas_Object_Protected_Data *obj) _efl_canvas_object_efl_object_invalidate(Eo *eo_obj, Evas_Object_Protected_Data *obj)
{ {
Efl_Input_Device *dev; Efl_Input_Device *dev;
Evas_Public_Data *edata;
Evas_Object_Pointer_Data *pdata; Evas_Object_Pointer_Data *pdata;
Evas_Object *proxy; Evas_Object *proxy;
Eina_List *l, *l2; Eina_List *l, *l2;
@ -1262,28 +1261,32 @@ _efl_canvas_object_efl_object_invalidate(Eo *eo_obj, Evas_Object_Protected_Data
efl_gfx_entity_visible_set((Eo *) eo_obj, EINA_FALSE); efl_gfx_entity_visible_set((Eo *) eo_obj, EINA_FALSE);
obj->efl_del_called = EINA_TRUE; obj->efl_del_called = EINA_TRUE;
edata = efl_data_scope_get(evas_object_evas_get(eo_obj), EVAS_CANVAS_CLASS);
evas_object_hide(eo_obj); evas_object_hide(eo_obj);
if (obj->events) EINA_COW_WRITE_BEGIN(evas_object_events_cow, obj->events, Evas_Object_Events_Data, events) if (obj->events)
{ EINA_COW_WRITE_BEGIN(evas_object_events_cow, obj->events, Evas_Object_Events_Data, events)
EINA_LIST_FREE (events->focused_by_seats, dev) {
{ Evas_Public_Data *edata = NULL;
event_id = _evas_event_counter;
efl_event_callback_del(dev, EFL_EVENT_DEL, if (!efl_invalidated_get(evas_object_evas_get(eo_obj)))
_evas_focus_device_del_cb, obj); edata = efl_data_scope_get(evas_object_evas_get(eo_obj), EVAS_CANVAS_CLASS);
eina_hash_del_by_key(edata->focused_objects, &dev);
_evas_focus_dispatch_event(obj, dev, EINA_FALSE); EINA_LIST_FREE (events->focused_by_seats, dev)
if ((obj->layer) && (obj->layer->evas)) {
_evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id); event_id = _evas_event_counter;
} efl_event_callback_del(dev, EFL_EVENT_DEL,
EINA_INLIST_FREE(events->pointer_grabs, pdata) _evas_focus_device_del_cb, obj);
_evas_object_pointer_grab_del(obj, pdata); if (edata) eina_hash_del_by_key(edata->focused_objects, &dev);
EINA_LIST_FREE(events->events_whitelist, dev) _evas_focus_dispatch_event(obj, dev, EINA_FALSE);
efl_event_callback_del(dev, EFL_EVENT_DEL, _whitelist_events_device_remove_cb, obj); if ((obj->layer) && (obj->layer->evas))
} _evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
EINA_COW_WRITE_END(evas_object_events_cow, obj->events, events); }
EINA_INLIST_FREE(events->pointer_grabs, pdata)
_evas_object_pointer_grab_del(obj, pdata);
EINA_LIST_FREE(events->events_whitelist, dev)
efl_event_callback_del(dev, EFL_EVENT_DEL, _whitelist_events_device_remove_cb, obj);
}
EINA_COW_WRITE_END(evas_object_events_cow, obj->events, events);
event_id = _evas_object_event_new(); event_id = _evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_DEL, NULL, event_id, NULL); evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_DEL, NULL, event_id, NULL);