Enlightenment CVS committal Author : onefang Project : misc Module : engage
Dir : misc/engage/src Modified Files: e_apps.c Log Message: ecore_desktop_get_command can now return a list of commands if it needs to. =================================================================== RCS file: /cvs/e/misc/engage/src/e_apps.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- e_apps.c 7 Sep 2006 14:28:49 -0000 1.12 +++ e_apps.c 25 Oct 2006 10:25:15 -0000 1.13 @@ -456,7 +456,21 @@ if (!inst) return 0; if (a->desktop) - command = ecore_desktop_get_command(a->desktop, NULL, 1); + { + Ecore_List *commands; + + /* We are not passing a list of files, so we only expect one command. */ + commands = ecore_desktop_get_command(a->desktop, NULL, 1); + if (commands) + { + char *temp; + + temp = ecore_list_first(commands); + if (temp) + command = strdup(temp); + ecore_list_destroy(commands); + } + } else command = strdup(a->exe); if (!command) ------------------------------------------------------------------------- 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