elementary: actually implement the terminate event.
authorCedric BAIL <cedric@osg.samsung.com>
Tue, 26 Sep 2017 17:09:37 +0000 (10:09 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 26 Sep 2017 17:15:07 +0000 (10:15 -0700)
src/lib/elementary/elm_general.h
src/lib/elementary/elm_main.c

index 2ef86cf..c56b181 100644 (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__;                                                         \
index 196f5b5..0bf8fe4 100644 (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]);