forked from enlightenment/efl
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:
parent
14e4e7dfbe
commit
3a7b3c67e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue