Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_apps.c e_apps.h e_main.c 


Log Message:


shutdown on restart needs some things to shut down, not all.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -3 -r1.122 -r1.123
--- e_apps.c    14 Feb 2006 12:51:40 -0000      1.122
+++ e_apps.c    15 Feb 2006 03:11:35 -0000      1.123
@@ -176,6 +176,24 @@
    return 1;
 }
 
+EAPI void
+e_app_unmonitor_all(void)
+{
+   Evas_List *l;
+   
+   for (l = _e_apps_list; l; l = l->next)
+     {
+       E_App *a;
+
+       a = l->data;
+       if (a->monitor)
+         {
+            ecore_file_monitor_del(a->monitor);
+            a->monitor = NULL;
+         }
+     }
+}
+
 EAPI E_App *
 e_app_raw_new(void)
 {
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_apps.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- e_apps.h    21 Jan 2006 15:39:03 -0000      1.28
+++ e_apps.h    15 Feb 2006 03:11:36 -0000      1.29
@@ -89,6 +89,8 @@
 EAPI int         e_app_init                              (void);
 EAPI int         e_app_shutdown                          (void);
 
+EAPI void        e_app_unmonitor_all                     (void);
+    
 EAPI E_App      *e_app_new                               (const char *path, 
int scan_subdirs);
 EAPI E_App      *e_app_empty_new                         (const char *path);
 EAPI void        e_app_image_size_set                    (E_App *a, int w, int 
h);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_main.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -u -3 -r1.152 -r1.153
--- e_main.c    14 Feb 2006 13:09:01 -0000      1.152
+++ e_main.c    15 Feb 2006 03:11:36 -0000      1.153
@@ -712,6 +712,10 @@
    /* if we were flagged to restart, then  restart. */
    if (restart)
      {
+       /* selected shutdown */
+       e_app_unmonitor_all();
+       e_ipc_shutdown();
+       ecore_file_shutdown();
        ecore_app_restart();
      }
    




-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to