efl_ui_popup: add timeout signal

Summary: add the timeout signal for user notification

Reviewers: Jaehyun_Cho, jpeg, cedric, Blackmole, thiepha, woohyun

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5372
This commit is contained in:
Taehyub Kim 2017-10-26 16:32:58 +09:00 committed by Jaehyun Cho
parent 27c0c90423
commit 8301e66d87
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ static Eina_Bool
_timer_cb(void *data)
{
Eo *popup = data;
efl_event_callback_call(popup, EFL_UI_POPUP_EVENT_TIMEOUT, NULL);
efl_del(popup);
return ECORE_CALLBACK_CANCEL;

View File

@ -67,5 +67,6 @@ class Efl.Ui.Popup(Efl.Ui.Layout)
}
events {
bg,clicked; [[This is called whenever the user click background of popup.]]
timeout; [[This is called when popup times out.]]
}
}