[Commits] [SCM] claws branch, gtk2, updated. 3.19.0-68-ga4359ac55

paul at claws-mail.org paul at claws-mail.org
Mon Sep 19 10:11:28 UTC 2022


The branch, gtk2 has been updated
       via  a4359ac5587f3318e8055e469139406dff3684f6 (commit)
       via  71a7ed6ffc99eacbe98c4fc8b33646ea80cad4ca (commit)
      from  475dfe8b10aa5dd7f2e3aac761d5d251b79f5b21 (commit)

Summary of changes:
 manual/en/advanced.xml |  9 +++++++++
 src/prefs_common.c     |  2 ++
 src/prefs_common.h     |  1 +
 src/summaryview.c      | 10 +++++-----
 4 files changed, 17 insertions(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit a4359ac5587f3318e8055e469139406dff3684f6
Author: Paul <paul at claws-mail.org>
Date:   Mon Sep 19 11:09:30 2022 +0100

    add 'bold_marked' entry to manual

diff --git a/manual/en/advanced.xml b/manual/en/advanced.xml
index 7590ad459..12c72708c 100644
--- a/manual/en/advanced.xml
+++ b/manual/en/advanced.xml
@@ -579,6 +579,15 @@
 	  </para>
 	</listitem>
       </varlistentry>
+      <varlistentry>
+	<term><literal>bold_marked</literal></term>
+	<listitem>
+	  <para>
+    Show marked messages in the message list of summary view using a
+    bold font when set to '1' (default). '0' will use normal font.
+	  </para>
+	</listitem>
+      </varlistentry>
       <varlistentry>
 	<term><literal>bold_unread</literal></term>
 	<listitem>

commit 71a7ed6ffc99eacbe98c4fc8b33646ea80cad4ca
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 1ee79992b..74ba3a7b6 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 08df39967..b99bf749b 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 b3115a9ca..a88a48a74 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -3363,8 +3363,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)
@@ -3988,8 +3988,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))))
@@ -7438,7 +7438,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