Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot


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/screenshot/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:20:47 -0000      1.4
+++ e_mod_main.h        6 Jan 2006 21:10:37 -0000       1.5
@@ -46,6 +46,7 @@
    Config      *conf;
 
    E_Config_DD *conf_edd;
+   E_Config_Dialog *config_dialog;
 };
 
 struct _Screen_Face
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/screenshot/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:36:41 -0000      1.8
+++ e_mod_main.c        6 Jan 2006 21:10:37 -0000       1.9
@@ -67,6 +67,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;
+         }
        _screen_shutdown(s);
      }
    return 1;
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/screenshot/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:39:43 -0000      1.5
+++ e_mod_config.c      6 Jan 2006 21:10:37 -0000       1.6
@@ -74,6 +74,7 @@
 
    /* create config diaolg */
    cfd = e_config_dialog_new(con, _("Screenshot 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