Enlightenment CVS committal Author : devilhorns Project : e_modules Module : rain
Dir : e_modules/rain 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/e_modules/rain/e_mod_main.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- e_mod_main.h 27 Dec 2005 21:20:11 -0000 1.5 +++ e_mod_main.h 6 Jan 2006 21:08:10 -0000 1.6 @@ -24,6 +24,7 @@ E_Config_DD *conf_edd; Config *conf; Evas_Coord width, height; + E_Config_Dialog *config_dialog; }; struct _Rain_Drop =================================================================== RCS file: /cvsroot/enlightenment/e_modules/rain/e_mod_main.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- e_mod_main.c 30 Dec 2005 14:34:22 -0000 1.10 +++ e_mod_main.c 6 Jan 2006 21:08:10 -0000 1.11 @@ -48,6 +48,11 @@ e_object_del(E_OBJECT(m->config_menu)); m->config_menu = NULL; } + if (rain->config_dialog) + { + e_object_del(E_OBJECT(rain->config_dialog)); + rain->config_dialog = NULL; + } _rain_shutdown(rain); } return 1; =================================================================== RCS file: /cvsroot/enlightenment/e_modules/rain/e_mod_config.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- e_mod_config.c 18 Dec 2005 06:21:45 -0000 1.5 +++ e_mod_config.c 6 Jan 2006 21:08:10 -0000 1.6 @@ -42,6 +42,7 @@ v.advanced.create_widgets = NULL; cfd = e_config_dialog_new(con, _("Rain Module"), NULL, 0, &v, r); + r->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