[gthumb/ext] compare by name if the modification time is the same.
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] compare by name if the modification time is the same.
- Date: Sun, 1 Nov 2009 15:05:50 +0000 (UTC)
commit db2e09f8f5c5dfcb74c889baf56d44fc812321f8
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Nov 1 16:05:10 2009 +0100
compare by name if the modification time is the same.
gthumb/gth-main-default-sort-types.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-main-default-sort-types.c b/gthumb/gth-main-default-sort-types.c
index 5f91ce8..ac83baf 100644
--- a/gthumb/gth-main-default-sort-types.c
+++ b/gthumb/gth-main-default-sort-types.c
@@ -64,11 +64,16 @@ gth_file_data_cmp_modified_time (GthFileData *a,
GthFileData *b)
{
GTimeVal *ta, *tb;
+ int result;
ta = gth_file_data_get_modification_time (a);
tb = gth_file_data_get_modification_time (b);
- return _g_time_val_cmp (ta, tb);
+ result = _g_time_val_cmp (ta, tb);
+ if (result == 0)
+ result = gth_file_data_cmp_filename (a, b);
+
+ return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]