Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibar


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/ibar/e_mod_main.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- e_mod_main.h        27 Dec 2005 17:16:58 -0000      1.27
+++ e_mod_main.h        6 Jan 2006 21:30:53 -0000       1.28
@@ -36,6 +36,7 @@
    E_Menu      *config_menu;
 
    Config      *conf;
+   E_Config_Dialog *config_dialog;   
 };
 
 struct _IBar_Bar
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -3 -r1.103 -r1.104
--- e_mod_main.c        2 Jan 2006 06:27:20 -0000       1.103
+++ e_mod_main.c        6 Jan 2006 21:30:53 -0000       1.104
@@ -125,8 +125,15 @@
      m->config_menu = NULL;
 
    ib = m->data;
-   if (ib)
-     _ibar_free(ib);
+   if (ib) 
+     {
+       if (ib->config_dialog) 
+         {
+            e_object_del(E_OBJECT(ib->config_dialog));
+            ib->config_dialog = NULL;
+         }
+       _ibar_free(ib);
+     }
    return 1;
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_config.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_mod_config.c      18 Dec 2005 06:28:42 -0000      1.9
+++ e_mod_config.c      6 Jan 2006 21:30:53 -0000       1.10
@@ -45,6 +45,7 @@
 
    /* Create The Dialog */
    cfd = e_config_dialog_new(con, _("IBar Configuration"), NULL, 0, &v, ibar);
+   ibar->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