[Commits] [SCM] claws branch, master, updated. 3.14.1-87-g38af4d7
claws at claws-mail.org
claws at claws-mail.org
Wed Dec 28 13:55:09 CET 2016
The branch, master has been updated
via 38af4d7654547396808189ad2a46560ef7d10d1f (commit)
from b2b913e310f2876e5e4686ff5746be8e3c79d455 (commit)
Summary of changes:
src/summaryview.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 38af4d7654547396808189ad2a46560ef7d10d1f
Author: Paul <paul at claws-mail.org>
Date: Wed Dec 28 12:55:04 2016 +0000
make Go to/[Next|Prev] sort order aware
diff --git a/src/summaryview.c b/src/summaryview.c
index c2a9362..2bf5399 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1814,7 +1814,10 @@ void summary_select_prev(SummaryView *summaryview)
GtkCMCTreeNode *node = summaryview->selected;
GtkCMCTree *ctree = GTK_CMCTREE(summaryview->ctree);
- node = gtkut_ctree_node_prev(ctree, node);
+ if (summaryview->sort_type == SORT_ASCENDING)
+ node = gtkut_ctree_node_prev(ctree, node);
+ else
+ node = gtkut_ctree_node_next(ctree, node);
if (node && node != summaryview->selected)
summary_select_node(summaryview, node, -1);
@@ -1825,7 +1828,10 @@ void summary_select_next(SummaryView *summaryview)
GtkCMCTreeNode *node = summaryview->selected;
GtkCMCTree *ctree = GTK_CMCTREE(summaryview->ctree);
- node = gtkut_ctree_node_next(ctree, node);
+ if (summaryview->sort_type == SORT_ASCENDING)
+ node = gtkut_ctree_node_next(ctree, node);
+ else
+ node = gtkut_ctree_node_prev(ctree, node);
if (node && node != summaryview->selected)
summary_select_node(summaryview, node, -1);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list