summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-03 16:41:30 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-03 16:41:30 +0000
commitb6d81b20fe0ee235fbfbe9e31a2634b5c469e5f3 (patch)
tree6dba9e0bb21b980781fd29ff0742474a1fc3caf7 /src
parent83bbb8ab51d4b322cd8a9f412d75245368fe0f74 (diff)
elementary: on external widgets del just call shutdown
Instead of adding it to an idler. If the main loop is already dead it won't shutdown correctly. SVN revision: 77377
Diffstat (limited to '')
-rw-r--r--src/edje_externals/elm.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index 7ec06b6fe..423322810 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -18,22 +18,13 @@ external_elm_init(void)
18 elm_init(argc, argv); 18 elm_init(argc, argv);
19} 19}
20 20
21static Eina_Bool
22_shutdown_idler(void *data __UNUSED__)
23{
24 elm_shutdown();
25
26 return ECORE_CALLBACK_CANCEL;
27}
28
29static void 21static void
30external_elm_shutdown(void) 22external_elm_shutdown(void)
31{ 23{
32 init_count--; 24 init_count--;
33 DBG("elm_real_shutdown\n"); 25 DBG("elm_real_shutdown\n");
34 if (init_count > 0) return; 26 if (init_count > 0) return;
35 27 elm_shutdown();
36 ecore_idler_add(_shutdown_idler, NULL);
37} 28}
38 29
39static void 30static void