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
This commit is contained in:
Bruno Dilly 2012-10-03 16:41:30 +00:00
parent 14e4e7dfbe
commit 3a7b3c67e0
1 changed files with 1 additions and 10 deletions

View File

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