fix target folder colorization

This commit is contained in:
Paul Mangan 2001-08-17 07:49:49 +00:00
parent 3e99f815cd
commit da9979afdd
2 changed files with 39 additions and 9 deletions

View 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,

View 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 && boldfont)
style->font = boldfont;
else
style->font = normalfont;
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_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);