Mercurial > geeqie
changeset 1780:763c254bc57a
Store sort parameters in appropriate variables.
author | zas_ |
---|---|
date | Sat, 19 Dec 2009 12:49:19 +0000 |
parents | f64e346a3d9c |
children | 95a013ade7e2 |
files | src/view_dir_list.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/view_dir_list.c Thu Dec 10 17:48:43 2009 +0000 +++ b/src/view_dir_list.c Sat Dec 19 12:49:19 2009 +0000 @@ -138,11 +138,13 @@ GList *old_list; gboolean ret; FileData *fd; + SortType sort_type = SORT_NAME; + gboolean sort_ascend = TRUE; old_list = VDLIST(vd)->list; ret = filelist_read(vd->dir_fd, NULL, &VDLIST(vd)->list); - VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, SORT_NAME, TRUE); + VDLIST(vd)->list = filelist_sort(VDLIST(vd)->list, sort_type, sort_ascend); /* add . and .. */ @@ -215,7 +217,7 @@ } else { - match = filelist_sort_compare_filedata_full(fd, old_fd, SORT_NAME, TRUE); + match = filelist_sort_compare_filedata_full(fd, old_fd, sort_type, sort_ascend); if (match == 0) g_warning("multiple fd for the same path"); }