Mercurial > geeqie.yaz
diff src/bar_sort.c @ 576:9dc0513837b5
dropped path_list functions, use filelist functions everywhere
author | nadvornik |
---|---|
date | Sun, 04 May 2008 21:54:20 +0000 |
parents | 57007e49d767 |
children | 905688aa2317 |
line wrap: on
line diff
--- a/src/bar_sort.c Sun May 04 19:00:39 2008 +0000 +++ b/src/bar_sort.c Sun May 04 21:54:20 2008 +0000 @@ -95,33 +95,33 @@ bookmark_list_set_key(bookmarks, SORT_KEY_COLLECTIONS); collect_path = g_strconcat(homedir(), "/", GQ_RC_DIR_COLLECTIONS, NULL); - path_list(collect_path, &list, NULL); + filelist_read(collect_path, &list, NULL); g_free(collect_path); - list = path_list_sort(list); + list = filelist_sort_path(list); work = list; while (work) { - const gchar *path; + FileData *fd; gchar *name; - path = work->data; + fd = work->data; work = work->next; - if (file_extension_match(path, ".gqv")) + if (file_extension_match(fd->path, ".gqv")) { - name = remove_extension_from_path(filename_from_path(path)); + name = remove_extension_from_path(fd->name); } else { - name = g_strdup(filename_from_path(path)); + name = g_strdup(fd->name); } - bookmark_list_add(bookmarks, name, path); + bookmark_list_add(bookmarks, name, fd->path); g_free(name); } - string_list_free(list); + filelist_free(list); } static void bar_sort_mode_sync(SortData *sd, SortModeType mode)