Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/client


Modified Files:
        entrance_session.c main.c 


Log Message:
minor fixups
since we openlog() in entrance_session_new, lets closelog() in
entrance_session_free

ecore_main_loop_quit removed from session starting code since we're already
outta the mainloop by th etime control reaches that area.

slight ecore_evas callback modifications to make it simpler

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_session.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- entrance_session.c  2 Jan 2004 18:19:31 -0000       1.26
+++ entrance_session.c  2 Jan 2004 18:29:29 -0000       1.27
@@ -96,6 +96,8 @@
       if (e->session)
          free(e->session);
 
+      closelog();
+
       free(e);
    }
 }
@@ -272,7 +274,7 @@
       if (pam_open_session(e->auth->pam.handle, 0) != PAM_SUCCESS)
       {
          syslog(LOG_CRIT, "Unable to open PAM session. Aborting.");
-         ecore_main_loop_quit();
+         return;
       }
    }
 #endif
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/main.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- main.c      2 Jan 2004 18:19:31 -0000       1.28
+++ main.c      2 Jan 2004 18:29:29 -0000       1.29
@@ -58,7 +58,6 @@
 static int
 exit_cb(void *data, int ev_type, void *ev)
 {
-   fprintf(stderr, "HELP\n");
    ecore_main_loop_quit();
    return 1;
 }
@@ -71,13 +70,6 @@
 window_del_cb(Ecore_Evas * ee)
 {
    ecore_main_loop_quit();
-#if 0
-   entrance_session_free(session);
-   ecore_evas_shutdown();
-   ecore_x_shutdown();
-   ecore_shutdown();
-#endif
-   exit(0);
 }
 
 /**
@@ -769,14 +761,12 @@
 
       entrance_session_ecore_evas_set(session, e);
       entrance_session_run(session);
-      fprintf(stderr, "%s", "BING\n");
 
       if (session->authed)
       {
          entrance_session_start_user_session(session);
       }
       entrance_session_free(session);
-      closelog();
       ecore_evas_shutdown();
       ecore_x_shutdown();
       ecore_shutdown();




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to