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

This commit is contained in:
Cedric BAIL 2017-10-19 16:05:30 -07:00
parent dad34967df
commit 93c570b5dd
3 changed files with 3 additions and 4 deletions

View File

@ -14,9 +14,8 @@ evas_object_inform_call_show(Evas_Object *eo_obj, Evas_Object_Protected_Data *ob
}
void
evas_object_inform_call_hide(Evas_Object *eo_obj)
evas_object_inform_call_hide(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_HIDE, NULL, event_id, EFL_GFX_EVENT_HIDE);

View File

@ -2077,7 +2077,7 @@ _hide(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
*/
}
evas_object_update_bounding_box(eo_obj, obj, NULL);
evas_object_inform_call_hide(eo_obj);
evas_object_inform_call_hide(eo_obj, obj);
}
EOLIAN static void

View File

@ -1741,7 +1741,7 @@ 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, Evas_Object_Protected_Data *pd);
void evas_object_inform_call_hide(Evas_Object *obj);
void evas_object_inform_call_hide(Evas_Object *obj, Evas_Object_Protected_Data *pd);
void evas_object_inform_call_move(Evas_Object *obj, Evas_Object_Protected_Data *pd);
void evas_object_inform_call_resize(Evas_Object *obj);
void evas_object_inform_call_restack(Evas_Object *obj);