Enlightenment CVS committal Author : codewarrior Project : e17 Module : libs/etk
Dir : e17/libs/etk/src/lib Modified Files: etk_cache.c Log Message: Since Gustavo changed the order of EVAS_CALLBACK_FREE's event in evas_object_main.c, we have to call the model's custom free callback before we delete the object from the tree. This brings up a question though, will this hurt any other apps? If you add an EVAS_CALLBACK_FREE callback to an edje object that has a swallow part, and you want to free the swallowed object when the main edje object is deleted, you can no longer expect that to be done automatically on evas_object_del since your EVAS_CALLBACK_FREE will be called too late. Any comments? =================================================================== RCS file: /cvs/e/e17/libs/etk/src/lib/etk_cache.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- etk_cache.c 19 Sep 2007 20:16:25 -0000 1.18 +++ etk_cache.c 3 Oct 2007 02:31:43 -0000 1.19 @@ -192,6 +192,8 @@ if (evas_list_count(cache->cached_objects) >= cache->size) { item = cache->cached_objects->data; + evas_object_event_callback_call(item->object, EVAS_CALLBACK_FREE, NULL); + evas_object_event_callback_del(item->object, EVAS_CALLBACK_FREE, _etk_cache_object_deleted_cb); evas_object_del(item->object); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs