[gthumb/gthumb-3-4] file store: preserve the manual ordering of a catalog
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb/gthumb-3-4] file store: preserve the manual ordering of a catalog
- Date: Mon, 3 Oct 2016 09:25:37 +0000 (UTC)
commit 7b1b197a7caf41512d351708089ddef3d21180a2
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Sep 25 09:48:54 2016 +0200
file store: preserve the manual ordering of a catalog
gthumb/gth-file-store.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gthumb/gth-file-store.c b/gthumb/gth-file-store.c
index 2c2afed..f09f8c5 100644
--- a/gthumb/gth-file-store.c
+++ b/gthumb/gth-file-store.c
@@ -849,12 +849,11 @@ g_print ("UPDATE VISIBILITY\n");
/* sort */
- if (file_store->priv->cmp_func != NULL)
- g_qsort_with_data (all_rows,
- all_rows_n,
- (gsize) sizeof (GthFileRow *),
- compare_row_func,
- file_store);
+ g_qsort_with_data (all_rows,
+ all_rows_n,
+ (gsize) sizeof (GthFileRow *),
+ (file_store->priv->cmp_func != NULL) ? compare_row_func : compare_by_pos,
+ file_store);
/* filter */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]