Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : snow

Dir     : e_modules/snow


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/snow/e_mod_main.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_main.h        27 Dec 2005 21:21:46 -0000      1.4
+++ e_mod_main.h        6 Jan 2006 21:16:17 -0000       1.5
@@ -24,6 +24,7 @@
    E_Config_DD    *conf_edd;
    Config         *conf;
    Evas_Coord      width, height;
+   E_Config_Dialog *config_dialog;
 };
 
 struct _Snow_Flake
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/snow/e_mod_main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_main.c        30 Dec 2005 14:41:20 -0000      1.8
+++ e_mod_main.c        6 Jan 2006 21:16:17 -0000       1.9
@@ -47,6 +47,11 @@
             e_object_del(E_OBJECT(m->config_menu));
             m->config_menu = NULL;
          }
+       if (snow->config_dialog) 
+         {
+            e_object_del(E_OBJECT(snow->config_dialog));
+            snow->config_dialog = NULL;
+         }
        _snow_shutdown(snow);
      }
    return 1;
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/snow/e_mod_config.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_config.c      27 Dec 2005 13:41:14 -0000      1.5
+++ e_mod_config.c      6 Jan 2006 21:16:17 -0000       1.6
@@ -41,6 +41,7 @@
    v.advanced.create_widgets = NULL;
 
    cfd = e_config_dialog_new(con, _("Snow Configuration"), NULL, 0, &v, s);
+   s->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

Reply via email to