elementary: actually implement the terminate event.

This commit is contained in:
Cedric BAIL 2017-09-26 10:09:37 -07:00
parent 5c14be4ecf
commit 0b37853f14
2 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,7 @@ extern EAPI double _elm_startup_time;
{ EFL_LOOP_EVENT_ARGUMENTS, efl_main }, \
{ EFL_LOOP_EVENT_PAUSE, efl_pause }, \
{ EFL_LOOP_EVENT_RESUME, efl_resume }, \
{ EFL_EVENT_DEL, efl_terminate }); \
{ EFL_LOOP_EVENT_TERMINATE, efl_terminate }); \
int main(int argc, char **argv) \
{ \
int ret__; \

View File

@ -435,6 +435,8 @@ elm_shutdown(void)
_elm_init_count--;
if (_elm_init_count > 0) return _elm_init_count;
efl_event_callback_call(ecore_main_loop_get(), EFL_LOOP_EVENT_TERMINATE, NULL);
ecore_event_handler_del(system_handlers[0]);
ecore_event_handler_del(system_handlers[1]);