evas: apply new event calling convention

Summary:
ref T7758

Depends on D8407

Reviewers: cedric, zmike, segfaultxavi

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7758

Differential Revision: https://phab.enlightenment.org/D8408
This commit is contained in:
Marcel Hollerbach 2019-03-19 16:31:50 -04:00 committed by Mike Blumenkrantz
parent 158336d19e
commit 60384a4d40
3 changed files with 8 additions and 5 deletions

View File

@ -265,9 +265,9 @@ static void
_pop_content_hide_cb(void *data, const Efl_Event *event)
{
Content_Data *cd = data;
Eina_Bool *visible = event->info;
/* object is being shown */
if (event->info) return;
if (*visible) return;
cd->popped_hidden = EINA_TRUE;

View File

@ -15,8 +15,9 @@ void
evas_object_inform_call_show(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
{
int event_id = _evas_object_event_new();
Eina_Bool vis = EINA_TRUE;
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_SHOW, (void*)1, event_id, EFL_GFX_ENTITY_EVENT_SHOW);
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_SHOW, &vis, event_id, EFL_GFX_ENTITY_EVENT_SHOW);
_evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
}
@ -24,8 +25,9 @@ void
evas_object_inform_call_hide(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
{
int event_id = _evas_object_event_new();
Eina_Bool vis = EINA_FALSE;
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_HIDE, NULL, event_id, EFL_GFX_ENTITY_EVENT_HIDE);
evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_HIDE, &vis, event_id, EFL_GFX_ENTITY_EVENT_HIDE);
_evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
}

View File

@ -161,7 +161,8 @@ _win_hide(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *e
static void
_ui_win_visibility_change(void *data EINA_UNUSED, const Efl_Event *ev)
{
if (ev->info)
Eina_Bool *visible = ev->info;
if (*visible)
_win_show(NULL, NULL, ev->object, NULL);
else
{