2007-01-16 [paul] 2.7.1cvs7
authorColin Leroy <colin@colino.net>
Tue, 16 Jan 2007 13:08:24 +0000 (13:08 +0000)
committerColin Leroy <colin@colino.net>
Tue, 16 Jan 2007 13:08:24 +0000 (13:08 +0000)
* src/summaryview.c
Allow folder classes to specify only sort_key or
sort_type instead of both or none.

ChangeLog
PATCHSETS
configure.ac
src/summaryview.c

index 9f87650..6ab12ee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-16 [paul]      2.7.1cvs7
+
+       * src/summaryview.c
+               Allow folder classes to specify only sort_key or
+               sort_type instead of both or none.
+
 2007-01-16 [paul]      2.7.1cvs6
 
        * src/action.c
index fc84b2f..8e37f75 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.179.2.148 -r 1.179.2.149 src/imap.c;  cvs diff -u -r 1.1.4.69 -r 1.1.4.70 src/etpan/imap-thread.c;  ) > 2.7.1cvs4.patchset
 ( cvs diff -u -r 1.179.2.149 -r 1.179.2.150 src/imap.c;  ) > 2.7.1cvs5.patchset
 ( cvs diff -u -r 1.12.2.41 -r 1.12.2.42 src/action.c;  cvs diff -u -r 1.382.2.351 -r 1.382.2.352 src/compose.c;  cvs diff -u -r 1.83.2.98 -r 1.83.2.99 src/mimeview.c;  cvs diff -u -r 1.49.2.86 -r 1.49.2.87 src/procmime.c;  cvs diff -u -r 1.96.2.164 -r 1.96.2.165 src/textview.c;  ) > 2.7.1cvs6.patchset
+( cvs diff -u -r 1.395.2.276 -r 1.395.2.277 src/summaryview.c;  ) > 2.7.1cvs7.patchset
index ecc46dd..c29c2f7 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=7
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=6
+EXTRA_VERSION=7
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index f1f549a..8a88807 100644 (file)
@@ -6267,13 +6267,14 @@ void summary_set_prefs_from_folderitem(SummaryView *summaryview, FolderItem *ite
                summaryview->simplify_subject_preg = summary_compile_simplify_regexp(item->prefs->simplify_subject_regexp);
 
        /* Sorting */
-       if (folder_get_sort_type(item->folder, &sort_key, &sort_type)) {
-               summaryview->sort_key = sort_key;
-               summaryview->sort_type = sort_type;
-       } else {
-               summaryview->sort_key = item->sort_key;
-               summaryview->sort_type = item->sort_type;
-       }
+       sort_key = item->sort_key;
+       sort_type = item->sort_type;
+
+       folder_get_sort_type(item->folder, &sort_key, &sort_type);
+
+       summaryview->sort_key = sort_key;
+       summaryview->sort_type = sort_type;
+
        /* Threading */
        summaryview->threaded = item->threaded;
        summaryview->thread_collapsed = item->thread_collapsed;