fix target folder colorization
authorPaul Mangan <paul@claws-mail.org>
Fri, 17 Aug 2001 07:49:49 +0000 (07:49 +0000)
committerPaul Mangan <paul@claws-mail.org>
Fri, 17 Aug 2001 07:49:49 +0000 (07:49 +0000)
ChangeLog.claws
src/folderview.c

index 09da71b..17a3001 100644 (file)
@@ -1,3 +1,19 @@
+2001-08-17 [paul]
+
+       * configure.in
+               add pl to ALL_LINGUAS - sync with main branch
+
+       * po/de.po, po/es.po, po/nl.po, po/pt_BR.po
+               Updated. Translations by Jens Oberender, Ricardo Mones
+               Lastra, Alfons, and Fabio Junior Beneditto respectively.
+
+       * po/pl.po  ** NEW FILE **
+               sync with the main branch
+
+        * src/folderview.c
+               fix target folder colorizing and refresh problem
+
+
 2001-08-17 [christoph]
 
        * src/mainwindow.c
@@ -10,7 +26,7 @@
 2001-08-16 [paul]
 
        * configure.in
-               change to version 0.5.3claws
+               change to version 0.5.3claws1
 
        * src/folder.h, src/folderview.[ch], src/gtkutils.[ch],
          src/inc.[ch], src/mainwindow.c, src/pop.c, src/prefs_account.c,
index a2c9bdd..e480319 100644 (file)
@@ -943,15 +943,29 @@ static void folderview_update_node(FolderView *folderview, GtkCTreeNode *node)
                         folderview_have_new_children(folderview, node));
        }
 
-       gtk_ctree_node_set_foreground(ctree, node, NULL);
-
-       if (use_bold && use_color)
-               style = bold_color_style;
-       else if (use_bold)
-               style = bold_style;
-       else if (use_color)
-               gtk_ctree_node_set_foreground(ctree, node,
-                                             &folderview->color_new);
+       if (use_bold && boldfont)
+               style->font = boldfont;
+       else
+               style->font = normalfont;
+
+       if (use_color) {
+               style->fg[GTK_STATE_NORMAL]   = folderview->color_new;
+               style->fg[GTK_STATE_SELECTED] = folderview->color_new;
+       } else {
+               if (item->op_count > 0) {
+                       if (boldfont)
+                               style->font = boldfont;
+                       style->fg[GTK_STATE_NORMAL]   =
+                               folderview->color_op;
+                       style->fg[GTK_STATE_SELECTED] =
+                               folderview->color_op;
+               } else {
+                       style->fg[GTK_STATE_NORMAL] =
+                               ctree_style->fg[GTK_STATE_NORMAL];
+                       style->fg[GTK_STATE_SELECTED] =
+                               ctree_style->fg[GTK_STATE_SELECTED];
+               }
+       }
 
        gtk_ctree_node_set_row_style(ctree, node, style);