Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : apps/entrance

Dir     : e17/apps/entrance/src/client


Modified Files:
        entrance_config.c 


Log Message:
ecore_desktop_get_command can now return a list of commands if it needs to.

===================================================================
RCS file: /cvs/e/e17/apps/entrance/src/client/entrance_config.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- entrance_config.c   22 Oct 2006 04:22:45 -0000      1.39
+++ entrance_config.c   25 Oct 2006 10:24:29 -0000      1.40
@@ -476,6 +476,7 @@
    const char* filename = list_data;
    struct _Entrance_Config_And_Path *ep = data;
    Entrance_Config *e;
+   Ecore_List *commands;
 
    if(!filename)
       return;
@@ -495,7 +496,17 @@
    char *command;
 
    /* Get the full command. */
-   command = ecore_desktop_get_command(ed, NULL, 1);
+   /* We are not passing a list of files, so we only expect one command. */
+   commands = ecore_desktop_get_command(ed, NULL, 1);
+   if (commands)
+     {
+        char *temp;
+
+       temp = ecore_list_first(commands);
+       if (temp)
+          command = strdup(temp);
+       ecore_list_destroy(commands);
+     }
    if ((exs = entrance_x_session_new(ed->name, ed->icon, command)))
     {
        /* Sessions found earlier in the FDO search sequence override those 
found later. */



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to