forked from enlightenment/efl
elm ctxpopup: fix auto_hide mode to work correctly
@fix Summary: fixx auto_hide mode to work correctly Test Plan: 1. launch elementary_test - ctxpopup 2. click normal ctxpopup and auto_hide ctxpopup sample 3. check the auto_hide function whether it is work well or not Reviewers: Jaehyun_Cho, raster, jpeg, cedric, singh.amitesh, DaveMDS, Hermet Reviewed By: DaveMDS Differential Revision: https://phab.enlightenment.org/D3967
This commit is contained in:
parent
f3b625e547
commit
a428e1e712
|
@ -50,6 +50,7 @@ _ctxpopup_item_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
|
||||||
{
|
{
|
||||||
printf("ctxpopup item selected: %s\n",
|
printf("ctxpopup item selected: %s\n",
|
||||||
elm_object_item_text_get(event_info));
|
elm_object_item_text_get(event_info));
|
||||||
|
elm_ctxpopup_dismiss(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Elm_Object_Item *
|
static Elm_Object_Item *
|
||||||
|
|
|
@ -938,6 +938,7 @@ _bg_clicked_cb(void *data,
|
||||||
{
|
{
|
||||||
ELM_CTXPOPUP_DATA_GET(data, sd);
|
ELM_CTXPOPUP_DATA_GET(data, sd);
|
||||||
|
|
||||||
|
if (sd->auto_hide)
|
||||||
_hide_signals_emit(data, sd->dir);
|
_hide_signals_emit(data, sd->dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue