Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/client


Modified Files:
        main.c 


Log Message:
Bugfix and feature enhancement, identify users by username entry too

23:05 < freerock> should entrance remember my last session if I don't select
my login from the user list?

Yes, it should provided you have identified yourself.  The following sum up
how Entrance should be handling user session remembering features. 
i hope they're right :)

For Example
Entrance Starts 
    -> Select KDE Session -> login as me(new user) -> KDE saved as "default"
    -> executes a KDE session


Logout ...
Entrance Starts Again
    -> Select Enlightenment -> login as me(existing user,all via keyboard)
    -> KDE is still the "default" -> executes a KDE session


Logout ..
Entrance Starts Again
    -> enter username -> wait on password prompt -> Select Enlightenment
    -> enter password -> Enlightenment is now default -> executes e


Logout
Entrance Starts Again
    -> Select KDE Session -> click my user icon -> enter password 
    -> Exec's my saved default session, and keeps saved default


Logout
Entrance Starts Again
    -> click my user icon -> select Gnome Session -> enter password
    -> Exec's Gnome session, and saves Gnome as new default


Logout

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/main.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- main.c      3 Mar 2004 20:08:47 -0000       1.38
+++ main.c      5 Mar 2004 08:01:18 -0000       1.39
@@ -147,6 +147,7 @@
 interp_return_key(void *data, const char *str)
 {
    Evas_Object *o = NULL;
+   Entrance_User *eu = NULL;
    Evas_Text_Entry *e = NULL;
 
    o = (Evas_Object *) data;
@@ -158,6 +159,9 @@
          if (!entrance_auth_set_user(session->auth, str))
          {
             edje_object_signal_emit(e->edje.o, "EntranceUserAuth", "");
+           if((eu = evas_hash_find(session->config->users.hash, str)))
+               entrance_session_user_set(session, eu);
+
             focus_swap(o, 0);
          }
          else




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to