evas: apply new event calling convention
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 19 Mar 2019 20:31:50 +0000 (16:31 -0400)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
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

src/lib/elementary/efl_ui_stack.c
src/lib/evas/canvas/evas_object_inform.c
src/tests/elementary/suite_helpers.c

index fed3e08..e7edcda 100644 (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;
 
index f13b3bf..7422d36 100644 (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);
 }
 
index 2427ccf..873e467 100644 (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
      {