projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ec5e57
)
Store sort parameters in appropriate variables.
author
Laurent Monin
<geeqie@norz.org>
Sat, 19 Dec 2009 12:49:19 +0000
(12:49 +0000)
committer
Laurent Monin
<geeqie@norz.org>
Sat, 19 Dec 2009 12:49:19 +0000
(12:49 +0000)
src/view_dir_list.c
patch
|
blob
|
history
diff --git
a/src/view_dir_list.c
b/src/view_dir_list.c
index
e0f4ca4
..
9f9d98f
100644
(file)
--- a/
src/view_dir_list.c
+++ b/
src/view_dir_list.c
@@
-138,11
+138,13
@@
static gboolean vdlist_populate(ViewDir *vd, gboolean clear)
GList *old_list;
gboolean ret;
FileData *fd;
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);
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 .. */
/* add . and .. */
@@
-215,7
+217,7
@@
static gboolean vdlist_populate(ViewDir *vd, gboolean clear)
}
else
{
}
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");
}
if (match == 0) g_warning("multiple fd for the same path");
}