[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-433-g9ad2c0b

ticho at claws-mail.org ticho at claws-mail.org
Sun Oct 28 12:57:20 CET 2018


The branch, gtk3 has been updated
       via  9ad2c0be37218fe61b8bac55331b67d159706c71 (commit)
      from  ba7cbfa5ae6a9d1a8ec2a7ead341fcc2aacacfb7 (commit)

Summary of changes:
 src/folderview.c |    2 ++
 1 file changed, 2 insertions(+)


- Log -----------------------------------------------------------------
commit 9ad2c0be37218fe61b8bac55331b67d159706c71
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Oct 28 12:56:40 2018 +0100

    Some GtkCMCTree black magic to fix custom folder color not being applied on startup.

diff --git a/src/folderview.c b/src/folderview.c
index 8bea5fe..574b4e5 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -1732,6 +1732,7 @@ static void folderview_update_node(FolderView *folderview, GtkCMCTreeNode *node)
 		}
 	} else if (use_color) {
 		GTKUT_GDKRGBA_TO_GDKCOLOR(folderview->color_new, gdk_color);
+		gtk_cmctree_node_set_foreground(ctree, node, &gdk_color);
 		style = gtk_style_copy(gtk_widget_get_style(GTK_WIDGET(ctree)));
 		style->text[GTK_STATE_NORMAL] = gdk_color;
 		style->text[GTK_STATE_SELECTED] = gdk_color;
@@ -1739,6 +1740,7 @@ static void folderview_update_node(FolderView *folderview, GtkCMCTreeNode *node)
 		style = gtk_style_copy(bold_tgtfold_style);
 	} else {
 		GTKUT_GDKRGBA_TO_GDKCOLOR(item->prefs->color, gdk_color);
+		gtk_cmctree_node_set_foreground(ctree, node, &gdk_color);
 		style = gtk_style_copy(gtk_widget_get_style(GTK_WIDGET(ctree)));
 		style->text[GTK_STATE_NORMAL] = gdk_color;
 		style->text[GTK_STATE_SELECTED] = gdk_color;

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list