summaryrefslogtreecommitdiff
path: root/src/bin/e_path.c
diff options
context:
space:
mode:
authorstffrdhrn <stffrdhrn>2005-11-26 11:44:02 +0000
committerstffrdhrn <stffrdhrn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-11-26 11:44:02 +0000
commit26b69ad8bdfa93b239802dcaa89f7dad13429649 (patch)
tree2301e57472f2cefc68bbbf245e99d7fb66a99932 /src/bin/e_path.c
parent2551e897ed7730bb60dfc119e1abffe155862269 (diff)
- Clean up the best match function and make it work
- In e_path the user list should be before the default list - Add a function to list all available locales wrapping "locale -a" SVN revision: 18647
Diffstat (limited to 'src/bin/e_path.c')
-rw-r--r--src/bin/e_path.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bin/e_path.c b/src/bin/e_path.c
index 74ff31c..4dbb64a 100644
--- a/src/bin/e_path.c
+++ b/src/bin/e_path.c
@@ -334,7 +334,7 @@ e_path_evas_append(E_Path *ep, Evas *evas)
334 if (dir_list) evas_list_free(dir_list); 334 if (dir_list) evas_list_free(dir_list);
335} 335}
336 336
337/* compine default_list and and user_list int and easy to use list */ 337/* combine default_list and and user_list in and easy to use list */
338Evas_List * 338Evas_List *
339e_path_dir_list_get(E_Path *ep) 339e_path_dir_list_get(E_Path *ep)
340{ 340{
@@ -345,14 +345,6 @@ e_path_dir_list_get(E_Path *ep)
345 345
346 dir_list = NULL; 346 dir_list = NULL;
347 347
348 for (l = ep->default_dir_list; l; l = l->next)
349 {
350 epd = l->data;
351 new_epd = malloc(sizeof(E_Path_Dir));
352 new_epd->dir = strdup(epd->dir);
353 dir_list = evas_list_append(dir_list, new_epd);
354 }
355
356 if (ep->user_dir_list) 348 if (ep->user_dir_list)
357 { 349 {
358 for (l = *(ep->user_dir_list); l; l = l->next) 350 for (l = *(ep->user_dir_list); l; l = l->next)
@@ -364,6 +356,14 @@ e_path_dir_list_get(E_Path *ep)
364 } 356 }
365 } 357 }
366 358
359 for (l = ep->default_dir_list; l; l = l->next)
360 {
361 epd = l->data;
362 new_epd = malloc(sizeof(E_Path_Dir));
363 new_epd->dir = strdup(epd->dir);
364 dir_list = evas_list_append(dir_list, new_epd);
365 }
366
367 return dir_list; 367 return dir_list;
368} 368}
369 369