Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : slideshow

Dir     : e_modules/slideshow


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/slideshow/e_mod_main.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- e_mod_main.h        31 Dec 2005 23:45:33 -0000      1.4
+++ e_mod_main.h        6 Jan 2006 21:12:54 -0000       1.5
@@ -30,6 +30,7 @@
 
    Config      *conf;
    E_Config_DD *conf_edd;
+   E_Config_Dialog *config_dialog;
 };
 
 struct _Slide_Face
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/slideshow/e_mod_main.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_main.c        31 Dec 2005 23:45:33 -0000      1.5
+++ e_mod_main.c        6 Jan 2006 21:12:54 -0000       1.6
@@ -102,6 +102,11 @@
             e_object_del(E_OBJECT(m->config_menu));
             m->config_menu = NULL;
          }
+       if (s->config_dialog) 
+         {
+            e_object_del(E_OBJECT(s->config_dialog));
+            s->config_dialog = NULL;
+         }
        _slide_shutdown(s);
      }
 
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/slideshow/e_mod_config.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_config.c      5 Jan 2006 09:26:59 -0000       1.5
+++ e_mod_config.c      6 Jan 2006 21:12:54 -0000       1.6
@@ -43,6 +43,7 @@
 
    /* create config diaolg */
    cfd = e_config_dialog_new(con, _("Slideshow 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