summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykyta Biliavskyi <m.biliavskyi@samsung.com>2017-12-08 10:14:23 +0200
committerMykyta Biliavskyi <m.biliavskyi@samsung.com>2017-12-08 10:14:23 +0200
commit0130202924dba6c1205e50d2416f62ff7415028e (patch)
tree0d55349169feefaa9297b9b09bcd97bf25bb638c
parent5b0a3101459e360ea4743b3cd56aefa9b5b20093 (diff)
Client: delete extensions on close application.
Summary: The Profiling viewer extension require to be notifyed that clouseau_client is closing. Another extensions also could require to make some routine before extension will be closed. Such as storing session info etc . Reviewers: i.furs, JackDanielZ, Deepwarrior Reviewed By: JackDanielZ, Deepwarrior Differential Revision: https://phab.enlightenment.org/D5608
-rw-r--r--src/bin/clouseau_client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bin/clouseau_client.c b/src/bin/clouseau_client.c
index 4b60b99..9b6ccd3 100644
--- a/src/bin/clouseau_client.c
+++ b/src/bin/clouseau_client.c
@@ -935,6 +935,14 @@ save_load_perform(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev
935 else _fs_activate(EINA_FALSE); 935 else _fs_activate(EINA_FALSE);
936} 936}
937 937
938static void
939_main_window_del(void *data EINA_UNUSED,
940 Evas_Object *obj EINA_UNUSED,
941 void *event_info EINA_UNUSED)
942{
943 _all_extensions_delete();
944}
945
938EAPI_MAIN int 946EAPI_MAIN int
939elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED) 947elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
940{ 948{
@@ -999,6 +1007,8 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
999 1007
1000 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED); 1008 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
1001 _main_widgets = gui_main_win_create(NULL); 1009 _main_widgets = gui_main_win_create(NULL);
1010 evas_object_smart_callback_add(_main_widgets->main_win, "delete,request",
1011 _main_window_del, NULL);
1002 1012
1003 for (i = 0; i < LAST_CONNECTION; i++) 1013 for (i = 0; i < LAST_CONNECTION; i++)
1004 { 1014 {