forked from enlightenment/efl
menu: Fix visibility flag of menu (missing efl_super)
This commit is contained in:
parent
5bdd9f6e39
commit
6d7395a7db
|
@ -15,6 +15,8 @@ _menu_show_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
||||||
void *event_info)
|
void *event_info)
|
||||||
{
|
{
|
||||||
Evas_Event_Mouse_Down *ev = event_info;
|
Evas_Event_Mouse_Down *ev = event_info;
|
||||||
|
|
||||||
|
if (evas_object_visible_get(data)) return;
|
||||||
elm_menu_move(data, ev->canvas.x, ev->canvas.y);
|
elm_menu_move(data, ev->canvas.x, ev->canvas.y);
|
||||||
evas_object_show(data);
|
evas_object_show(data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -571,6 +571,7 @@ _elm_menu_efl_gfx_visible_set(Eo *obj EINA_UNUSED, Elm_Menu_Data *sd, Eina_Bool
|
||||||
if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_VISIBLE, 0, vis))
|
if (_evas_object_intercept_call(obj, EVAS_OBJECT_INTERCEPT_CB_VISIBLE, 0, vis))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
efl_gfx_visible_set(efl_super(obj, MY_CLASS), vis);
|
||||||
if (vis) efl_gfx_visible_set(sd->hv, EINA_TRUE);
|
if (vis) efl_gfx_visible_set(sd->hv, EINA_TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue