evas: propagate object data to evas_object_inform_call_show instead of fetching it again.

This commit is contained in:
Cedric BAIL 2017-10-19 16:04:12 -07:00
parent c0b2ae2cc8
commit dad34967df
3 changed files with 3 additions and 4 deletions

View File

@ -5,9 +5,8 @@
/* local calls */
void
evas_object_inform_call_show(Evas_Object *eo_obj)
evas_object_inform_call_show(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
{
Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
int event_id = _evas_object_event_new();
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_SHOW, NULL, event_id, EFL_GFX_EVENT_SHOW);

View File

@ -1948,7 +1948,7 @@ _show(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
}
}
evas_object_update_bounding_box(eo_obj, obj, NULL);
evas_object_inform_call_show(eo_obj);
evas_object_inform_call_show(eo_obj, obj);
Event_Animation *event_anim = _event_animation_find(obj, EFL_GFX_EVENT_SHOW);
if (event_anim)

View File

@ -1740,7 +1740,7 @@ void evas_object_event_callback_all_del(Evas_Object *obj);
void evas_object_event_callback_cleanup(Evas_Object *obj);
void evas_event_callback_all_del(Evas *e);
void evas_event_callback_cleanup(Evas *e);
void evas_object_inform_call_show(Evas_Object *obj);
void evas_object_inform_call_show(Evas_Object *obj, Evas_Object_Protected_Data *pd);
void evas_object_inform_call_hide(Evas_Object *obj);
void evas_object_inform_call_move(Evas_Object *obj, Evas_Object_Protected_Data *pd);
void evas_object_inform_call_resize(Evas_Object *obj);