Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/exige
Modified Files:
exg_gui.c
Log Message:
ecore_file_ls
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/exige/exg_gui.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- exg_gui.c 5 Sep 2005 11:53:24 -0000 1.12
+++ exg_gui.c 7 Oct 2005 08:33:34 -0000 1.13
@@ -101,6 +101,7 @@
char *home;
Ecore_List *eapps;
int i;
+ char *name;
home = getenv("HOME");
if (!home)
@@ -125,9 +126,9 @@
exg_eapps = ecore_hash_new(ecore_str_hash, ecore_str_compare);
- for (i = 0; i < ecore_list_nodes(eapps); i++)
+ while ((name = ecore_list_next(eapps)))
{
- char *ret, *tmp;
+ char *ret;
int ret_size;
Eet_File *ef;
char e_path[PATH_MAX];
@@ -140,10 +141,9 @@
continue;
}
- tmp = ecore_list_goto_index(eapps, i);
- eapp->eapp_name = strdup(tmp);
+ eapp->eapp_name = strdup(name);
- snprintf(e_path, PATH_MAX, "%s/%s", path, tmp);
+ snprintf(e_path, PATH_MAX, "%s/%s", path, name);
eapp->path = strdup(e_path);
ef = eet_open(e_path, EET_FILE_MODE_READ);
if (!ef)
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs