Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

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


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/temperature/e_mod_main.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- e_mod_main.h        27 Dec 2005 17:16:58 -0000      1.13
+++ e_mod_main.h        6 Jan 2006 21:43:50 -0000       1.14
@@ -41,13 +41,13 @@
 
    Config           *conf;
    Ecore_Timer      *temperature_check_timer;
-
-   unsigned char     have_temp;
+   E_Config_Dialog  *config_dialog;
+   unsigned char    have_temp;
 };
 
 struct _Temperature_Face
 {
-       Temperature *temp;
+   Temperature *temp;
    E_Container *con;
    E_Menu      *menu;
    Config_Face *conf;
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e/src/modules/temperature/e_mod_main.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- e_mod_main.c        30 Dec 2005 14:24:19 -0000      1.49
+++ e_mod_main.c        6 Jan 2006 21:43:50 -0000       1.50
@@ -65,8 +65,15 @@
      m->config_menu = NULL;
 
    e = m->data;
-   if (e)
-     _temperature_free(e);
+   if (e) 
+     {
+       if (e->config_dialog) 
+         {
+            e_object_del(E_OBJECT(e->config_dialog));
+            e->config_dialog = NULL;
+         }
+       _temperature_free(e);
+     }
    return 1;
 }
 
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e/src/modules/temperature/e_mod_config.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_config.c      24 Dec 2005 19:54:18 -0000      1.8
+++ e_mod_config.c      6 Jan 2006 21:43:50 -0000       1.9
@@ -63,6 +63,7 @@
    v.advanced.create_widgets = _advanced_create_widgets;
    
    cfd = e_config_dialog_new(con, _("Temperature Configuration"), NULL, 0, &v, 
temp);
+   temp->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