From: Enlightenment C. <no...@cv...> - 2006-10-26 08:14:24
|
Enlightenment CVS committal Author : xcomputerman Project : e17 Module : apps/entrance Dir : e17/apps/entrance/src/client Modified Files: entrance_config.c Log Message: Begone, foul bugs. =================================================================== RCS file: /cvs/e/e17/apps/entrance/src/client/entrance_config.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -3 -r1.41 -r1.42 --- entrance_config.c 26 Oct 2006 08:05:55 -0000 1.41 +++ entrance_config.c 26 Oct 2006 08:14:20 -0000 1.42 @@ -481,7 +481,9 @@ const char *filename = list_data; struct _Entrance_Config_And_Path *ep = data; Entrance_Config *e; - Ecore_List *commands; + Entrance_X_Session *exs = NULL; + char *command = NULL; + if (!filename) return; @@ -499,21 +501,9 @@ if (!ed) return; - Entrance_X_Session *exs = NULL; - char *command; - /* Get the full command. */ /* 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); - } + command = ecore_desktop_get_command(ed, NULL, 1); if ((exs = entrance_x_session_new(ed->name, ed->icon, command))) { /* Sessions found earlier in the FDO search sequence override those |