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:
parent
158336d19e
commit
60384a4d40
|
@ -265,9 +265,9 @@ static void
|
||||||
_pop_content_hide_cb(void *data, const Efl_Event *event)
|
_pop_content_hide_cb(void *data, const Efl_Event *event)
|
||||||
{
|
{
|
||||||
Content_Data *cd = data;
|
Content_Data *cd = data;
|
||||||
|
Eina_Bool *visible = event->info;
|
||||||
/* object is being shown */
|
/* object is being shown */
|
||||||
if (event->info) return;
|
if (*visible) return;
|
||||||
|
|
||||||
cd->popped_hidden = EINA_TRUE;
|
cd->popped_hidden = EINA_TRUE;
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,9 @@ void
|
||||||
evas_object_inform_call_show(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
|
evas_object_inform_call_show(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
|
||||||
{
|
{
|
||||||
int event_id = _evas_object_event_new();
|
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);
|
_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)
|
evas_object_inform_call_hide(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj)
|
||||||
{
|
{
|
||||||
int event_id = _evas_object_event_new();
|
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);
|
_evas_post_event_callback_call(obj->layer->evas->evas, obj->layer->evas, event_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,7 +161,8 @@ _win_hide(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *e
|
||||||
static void
|
static void
|
||||||
_ui_win_visibility_change(void *data EINA_UNUSED, const Efl_Event *ev)
|
_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);
|
_win_show(NULL, NULL, ev->object, NULL);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue