Cedric Bail On Sep 29, 2012 10:26 PM, "Gustavo Sverzut Barbieri" < [email protected]> wrote: > > On Saturday, September 29, 2012, Cedric BAIL wrote: > > > On Sep 29, 2012 6:28 AM, "Bruno Dilly" <[email protected] <javascript:;>> > > wrote: > > > I just saw that when an elm external is added it calls elm_init(), and > > > calls shutdown when it's deleted. > > > But it's not a nice place to put these calls, because you'll create > > > scenarios where elm won't shutdown properly. > > > > > > Example: > > > > > > A elm application that uses elm_exit() to quit. > > > > > > it will have > > > > > > elm_main() { > > > ... > > > elm_run() > > > ... > > > elm_shutdown() > > > } > > > ELM_MAIN > > > > > > If you are not using externals, when you call elm_exit() it will quit > > > the main loop, call elm_shutdown, elm init count will be 0, so it will > > > delete the windows and it's widgets, call possible callback functions > > > for object delete. Nice. > > > > > > But if you are using externals in your theme, when you call > > > elm_shutdown(), elm init count will be the number of externals used, > > > so it won't really shutdown, it won't delete the objects, no callbacks > > > will be called. Not good. > > > > > > Does anybody have ideas about how to fix it ? > > > > Evas_object_del on the window should do the job and seem logical to me. > > > That's the problem: windows are never destroyed since elm initialization > count never drops to zero, then no Evas shutdown and no canvas deleted. > > He was talking to me about elm policy to request windows to be deleted on > elm_exit() and I like that idea.
Make sense to me to, as it's the common case. > > > -- > > > Bruno Dilly > > > Senior Developer > > > ProFUSION embedded systems > > > http://profusion.mobi > > > > > > > > > > ------------------------------------------------------------------------------ > > > Got visibility? > > > Most devs has no idea what their production app looks like. > > > Find out how fast your code is with AppDynamics Lite. > > > http://ad.doubleclick.net/clk;262219671;13503038;y? > > > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > > > _______________________________________________ > > > enlightenment-devel mailing list > > > [email protected] <javascript:;> > > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > > ------------------------------------------------------------------------------ > > How fast is your code? > > 3 out of 4 devs don\\\'t know how their code performs in production. > > Find out how slow your code is with AppDynamics Lite. > > http://ad.doubleclick.net/clk;262219672;13503038;z? > > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > > _______________________________________________ > > enlightenment-devel mailing list > > [email protected] <javascript:;> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > -- > Gustavo Sverzut Barbieri > http://profusion.mobi embedded systems > -------------------------------------- > MSN: [email protected] > Skype: gsbarbieri > Mobile: +55 (19) 9225-2202 > ------------------------------------------------------------------------------ > How fast is your code? > 3 out of 4 devs don\\\'t know how their code performs in production. > Find out how slow your code is with AppDynamics Lite. > http://ad.doubleclick.net/clk;262219672;13503038;z? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
