_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;
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);
}
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);
}
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
{