Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/dropshadow Modified Files: e_mod_main.h e_mod_main.c e_mod_config.c Log Message: If a module has a config dialogue, destroy it on module shutdown =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/dropshadow/e_mod_main.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- e_mod_main.h 27 Dec 2005 17:16:58 -0000 1.12 +++ e_mod_main.h 6 Jan 2006 21:28:29 -0000 1.13 @@ -39,6 +39,7 @@ E_Config_DD *conf_edd; Config *conf; + E_Config_Dialog *config_dialog; struct { unsigned char *gauss; =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/dropshadow/e_mod_main.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -3 -r1.38 -r1.39 --- e_mod_main.c 29 Dec 2005 16:23:52 -0000 1.38 +++ e_mod_main.c 6 Jan 2006 21:28:29 -0000 1.39 @@ -129,7 +129,15 @@ Dropshadow *ds; ds = m->data; - if (ds) _ds_shutdown(ds); + if (ds) + { + if (ds->config_dialog) + { + e_object_del(E_OBJECT(ds->config_dialog)); + ds->config_dialog = NULL; + } + _ds_shutdown(ds); + } return 1; } =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/dropshadow/e_mod_config.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_mod_config.c 20 Dec 2005 23:07:52 -0000 1.1 +++ e_mod_config.c 6 Jan 2006 21:28:29 -0000 1.2 @@ -40,6 +40,7 @@ v.advanced.create_widgets = NULL; cfd = e_config_dialog_new(con, _("Dropshadow Configuration"), NULL, 0, &v, ds); + ds->config_dialog = cfd; } 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