Enlightenment CVS committal Author : rephorm Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/gadget_test Modified Files: e_mod_main.c Log Message: Allow gadgets to either be 1 per container (default) or 1 per zone (like the pager). =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/gadget_test/e_mod_main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- e_mod_main.c 18 Dec 2005 07:37:53 -0000 1.2 +++ e_mod_main.c 18 Dec 2005 21:06:37 -0000 1.3 @@ -35,6 +35,7 @@ api->module = m; api->name = "test_gadget"; + api->per_zone = 1; api->func_face_init = _test_face_init; api->func_face_free = _test_face_free; api->func_change = _test_face_change; @@ -88,9 +89,11 @@ static void _test_face_free(void *data, E_Gadget_Face *face) { + /* really, this should be done in a gadget_free callback, but that doesn't exist yet... */ Test *t; t = data; if (t) free(t); + face->gad->data = NULL; } static void ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs