[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
This commit is contained in:
Gustavo Lima Chaves 2012-06-08 21:05:37 +00:00
parent b06f7aa8e6
commit 727f4692b3
1 changed files with 10 additions and 1 deletions

View File

@ -18,13 +18,22 @@ external_elm_init(void)
elm_init(argc, argv);
}
static Eina_Bool
_shutdown_idler(void *data)
{
elm_shutdown();
return ECORE_CALLBACK_CANCEL;
}
static void
external_elm_shutdown(void)
{
init_count--;
DBG("elm_real_shutdown\n");
if (init_count > 0) return;
elm_shutdown();
ecore_idler_add(_shutdown_idler, NULL);
}
static void