Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/conf Modified Files: e_conf.c e_conf.h e_mod_main.c Log Message: When the module gets unloaded, kill open Config Panels. If left open, they cause segfaults for things like mouse_events on buttons, etc, etc. =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/conf/e_conf.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_conf.c 5 Aug 2007 08:07:39 -0000 1.1 +++ e_conf.c 18 Aug 2007 10:45:38 -0000 1.2 @@ -179,6 +179,18 @@ _e_configure = eco; } +EAPI void +e_configure_del(void) +{ + E_Configure *eco; + + if (_e_configure) + { + eco = _e_configure; + e_object_del(E_OBJECT(eco)); + } +} + static void _e_configure_free(E_Configure *eco) { =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/conf/e_conf.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_conf.h 5 Aug 2007 08:07:39 -0000 1.1 +++ e_conf.h 18 Aug 2007 10:45:38 -0000 1.2 @@ -5,6 +5,7 @@ #define E_CONF_H EAPI void e_configure_show(E_Container *con); +EAPI void e_configure_del(void); #endif #endif =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/conf/e_mod_main.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_mod_main.c 5 Aug 2007 08:07:39 -0000 1.1 +++ e_mod_main.c 18 Aug 2007 10:45:38 -0000 1.2 @@ -54,6 +54,7 @@ EAPI int e_modapi_shutdown(E_Module *m) { + e_configure_del(); /* remove module-supplied menu additions */ if (maug) { ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs