summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-09-26 10:09:37 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-09-26 10:15:07 -0700
commit0b37853f14f443c29163ca9bdb73845602da5ca2 (patch)
treeeac90ee5f831771c59b4f0be1d5fd59efe0c4b55 /src/lib/elementary
parent5c14be4ecf9f5bb807f286272c4d9ecccc4aa12b (diff)
elementary: actually implement the terminate event.
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_general.h2
-rw-r--r--src/lib/elementary/elm_main.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_general.h b/src/lib/elementary/elm_general.h
index 2ef86cfaa1..c56b181528 100644
--- a/src/lib/elementary/elm_general.h
+++ b/src/lib/elementary/elm_general.h
@@ -116,7 +116,7 @@ extern EAPI double _elm_startup_time;
116 { EFL_LOOP_EVENT_ARGUMENTS, efl_main }, \ 116 { EFL_LOOP_EVENT_ARGUMENTS, efl_main }, \
117 { EFL_LOOP_EVENT_PAUSE, efl_pause }, \ 117 { EFL_LOOP_EVENT_PAUSE, efl_pause }, \
118 { EFL_LOOP_EVENT_RESUME, efl_resume }, \ 118 { EFL_LOOP_EVENT_RESUME, efl_resume }, \
119 { EFL_EVENT_DEL, efl_terminate }); \ 119 { EFL_LOOP_EVENT_TERMINATE, efl_terminate }); \
120 int main(int argc, char **argv) \ 120 int main(int argc, char **argv) \
121 { \ 121 { \
122 int ret__; \ 122 int ret__; \
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 196f5b5bbc..0bf8fe41ca 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -435,6 +435,8 @@ elm_shutdown(void)
435 _elm_init_count--; 435 _elm_init_count--;
436 if (_elm_init_count > 0) return _elm_init_count; 436 if (_elm_init_count > 0) return _elm_init_count;
437 437
438 efl_event_callback_call(ecore_main_loop_get(), EFL_LOOP_EVENT_TERMINATE, NULL);
439
438 ecore_event_handler_del(system_handlers[0]); 440 ecore_event_handler_del(system_handlers[0]);
439 ecore_event_handler_del(system_handlers[1]); 441 ecore_event_handler_del(system_handlers[1]);
440 442