[Commits] [SCM] claws branch, master, updated. 4.1.0-62-g61b676f31

paul at claws-mail.org paul at claws-mail.org
Mon Sep 19 10:07:35 UTC 2022


The branch, master has been updated
       via  61b676f3121ad2c24311d48ff3355c56def972a2 (commit)
      from  8d910b825d81d8d7224f8091e66144716943d4e7 (commit)

Summary of changes:
 src/prefs_common.c |  2 ++
 src/prefs_common.h |  1 +
 src/summaryview.c  | 10 +++++-----
 3 files changed, 8 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit 61b676f3121ad2c24311d48ff3355c56def972a2
Author: Paul <paul at claws-mail.org>
Date:   Mon Sep 19 11:07:29 2022 +0100

    optionally (via hidden pref) use bold font in summaryview for 'marked' messages

diff --git a/src/prefs_common.c b/src/prefs_common.c
index fddb5bdd7..02eb41c0a 100644
--- a/src/prefs_common.c
+++ b/src/prefs_common.c
@@ -464,6 +464,8 @@ static PrefParam param[] = {
 
 	 {"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
 	 NULL, NULL, NULL},
+	 {"bold_marked", "FALSE", &prefs_common.bold_marked, P_BOOL,
+	 NULL, NULL, NULL},
 
 #ifndef GENERIC_UMPC
 	{"toolbar_style", "3", &prefs_common.toolbar_style, P_ENUM,
diff --git a/src/prefs_common.h b/src/prefs_common.h
index 0d4cf465d..0d5220f02 100644
--- a/src/prefs_common.h
+++ b/src/prefs_common.h
@@ -262,6 +262,7 @@ struct _PrefsCommon
 	gint stripes_color_offset;
 	gboolean enable_hscrollbar;
 	gboolean bold_unread;
+	gboolean bold_marked;
 	gboolean next_on_delete;
 	gboolean thread_by_subject;
 	gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
diff --git a/src/summaryview.c b/src/summaryview.c
index d39306a4f..bd0eb8c06 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -3357,8 +3357,8 @@ static void summary_set_ctree_from_list(SummaryView *summaryview,
 
 	node = GTK_CMCTREE_NODE(GTK_CMCLIST(ctree)->row_list);
 
-	if (prefs_common.bold_unread) {
-		START_TIMING("bold_unread");
+	if (prefs_common.bold_unread || prefs_common.bold_marked) {
+		START_TIMING("bold_unread/bold_marked");
 		while (node) {
 			GtkCMCTreeNode *next = GTK_CMCTREE_NODE_NEXT(node);
 			if (GTK_CMCTREE_ROW(node)->children)
@@ -3982,8 +3982,8 @@ static void summary_set_row_marks(SummaryView *summaryview, GtkCMCTreeNode *row)
 					"");
 	}
 
-	if (prefs_common.bold_unread &&
-	    ((MSG_IS_UNREAD(flags) && !MSG_IS_IGNORE_THREAD(flags)) ||
+	if ((prefs_common.bold_unread || prefs_common.bold_marked) &&
+	    (((MSG_IS_UNREAD(flags) || MSG_IS_MARKED(flags)) && !MSG_IS_IGNORE_THREAD(flags)) ||
 	     (!GTK_CMCTREE_ROW(row)->expanded &&
 	      GTK_CMCTREE_ROW(row)->children &&
 	      summary_have_unread_children(summaryview, row))))
@@ -7414,7 +7414,7 @@ static void summary_sort_by_column_click(SummaryView *summaryview,
 	node = GTK_CMCTREE_NODE(GTK_CMCLIST(summaryview->ctree)->row_list);
 
 	summary_freeze(summaryview);
-	if (prefs_common.bold_unread) {
+	if (prefs_common.bold_unread || prefs_common.bold_marked) {
 		while (node) {
 			GtkCMCTreeNode *next = GTK_CMCTREE_NODE_NEXT(node);
 			if (GTK_CMCTREE_ROW(node)->children)

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list