summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm.c
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2012-06-08 21:05:37 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2012-06-08 21:05:37 +0000
commit6ab3bd637264d055a98d9663f3de992eea5d4492 (patch)
tree7e379d8e146954fb9d251069d391671d0d21d69f /src/edje_externals/elm.c
parent98dc3280457a6df33abcf5bc1daa66ca1a62f3d4 (diff)
[elm] Fix elm_shutdown via Edje externals.
An EVAS_CALLBACK_DEL event cb will take place before the smart del function, so there'll be more action taking place after that, and Elm has be on. SVN revision: 71867
Diffstat (limited to '')
-rw-r--r--src/edje_externals/elm.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index 80b7248b5..c07a0fb75 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -18,13 +18,22 @@ 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)
23{
24 elm_shutdown();
25
26 return ECORE_CALLBACK_CANCEL;
27}
28
21static void 29static void
22external_elm_shutdown(void) 30external_elm_shutdown(void)
23{ 31{
24 init_count--; 32 init_count--;
25 DBG("elm_real_shutdown\n"); 33 DBG("elm_real_shutdown\n");
26 if (init_count > 0) return; 34 if (init_count > 0) return;
27 elm_shutdown(); 35
36 ecore_idler_add(_shutdown_idler, NULL);
28} 37}
29 38
30static void 39static void