[Commits] [SCM] claws branch, master, updated. 3.14.1-12-gafe0203

ticho at claws-mail.org ticho at claws-mail.org
Mon Nov 14 18:37:46 CET 2016


The branch, master has been updated
       via  afe0203a640d39817f068e0fb9b5f2cb631cf677 (commit)
      from  ad839919d8346935f1dd0239da38236f34f2ef88 (commit)

Summary of changes:
 src/summaryview.c |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)


- Log -----------------------------------------------------------------
commit afe0203a640d39817f068e0fb9b5f2cb631cf677
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Nov 14 18:37:04 2016 +0100

    Use summary_select_node() more, to get more consistent behaviour.

diff --git a/src/summaryview.c b/src/summaryview.c
index e43ae92..4eefceb 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1481,9 +1481,7 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
 					(ctree,
 					 item->sort_type == SORT_DESCENDING
 					 ? 0 : GTK_CMCLIST(ctree)->rows - 1);
-			gtk_sctree_select(GTK_SCTREE(ctree), node);
-			summaryview->selected = node;
-			gtk_cmctree_node_moveto(ctree, node, 0, 0.5, 0);
+			summary_select_node(summaryview, node, -1);
 		}
 	} else {
 		/* backward compat */
@@ -4956,8 +4954,7 @@ gboolean summary_execute(SummaryView *summaryview)
 
 	if (new_selected) {
 		summary_unlock(summaryview);
-		gtk_sctree_select
-			(GTK_SCTREE(ctree), new_selected);
+		summary_select_node(summaryview, new_selected, -1);
 		summary_lock(summaryview);
 	}
 
@@ -5057,8 +5054,7 @@ gboolean summary_expunge(SummaryView *summaryview)
 
 	if (new_selected) {
 		summary_unlock(summaryview);
-		gtk_sctree_select
-			(GTK_SCTREE(ctree), new_selected);
+		summary_select_node(summaryview, new_selected, -1);
 		summary_lock(summaryview);
 	}
 
@@ -5514,7 +5510,7 @@ void summary_collapse_threads(SummaryView *summaryview)
 	while (node && GTK_CMCTREE_ROW(node)->parent) {
 		focus_node = node = GTK_CMCTREE_ROW(node)->parent;
 	}
-	gtk_sctree_select(GTK_SCTREE(ctree), focus_node);
+	summary_select_node(summaryview, node, -1);
 	node = GTK_CMCTREE_NODE(GTK_CMCLIST(ctree)->row_list);
 	while (node) {
 		if (GTK_CMCTREE_ROW(node)->children) {

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list