Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/battery 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/battery/e_mod_main.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- e_mod_main.h 27 Dec 2005 17:16:57 -0000 1.17 +++ e_mod_main.h 6 Jan 2006 21:21:48 -0000 1.18 @@ -41,6 +41,7 @@ int battery_prev_drain; int battery_prev_ac; int battery_prev_battery; + E_Config_Dialog *config_dialog; }; struct _Battery_Face =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/battery/e_mod_main.c,v retrieving revision 1.63 retrieving revision 1.64 diff -u -3 -r1.63 -r1.64 --- e_mod_main.c 30 Dec 2005 14:10:35 -0000 1.63 +++ e_mod_main.c 6 Jan 2006 21:21:50 -0000 1.64 @@ -95,9 +95,15 @@ m->config_menu = NULL; e = m->data; - if (e) - _battery_shutdown(e); - + if (e) + { + if (e->config_dialog) + { + e_object_del(E_OBJECT(e->config_dialog)); + e->config_dialog = NULL; + } + _battery_shutdown(e); + } return 1; } =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/battery/e_mod_config.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- e_mod_config.c 24 Dec 2005 19:52:55 -0000 1.6 +++ e_mod_config.c 6 Jan 2006 21:21:50 -0000 1.7 @@ -40,6 +40,7 @@ v.advanced.create_widgets = _advanced_create_widgets; cfd = e_config_dialog_new(con, _("Battery Configuration"), NULL, 0, &v, bat); + bat->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