Mercurial > pidgin.yaz
diff finch/libgnt/gnttree.c @ 21264:ad49d9dace9f
Draw the 'header' correctly when not showing borders.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 26 Oct 2007 08:41:17 +0000 |
parents | f35b480841dc |
children | ca16de222b76 |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c Fri Oct 26 08:39:34 2007 +0000 +++ b/finch/libgnt/gnttree.c Fri Oct 26 08:41:17 2007 +0000 @@ -455,9 +455,10 @@ } if (pos) { - tree_mark_columns(tree, pos, 0, ACS_TTEE | gnt_color_pair(GNT_COLOR_NORMAL)); + tree_mark_columns(tree, pos, 0, + (tree->show_separator ? ACS_TTEE : ACS_HLINE) | gnt_color_pair(GNT_COLOR_NORMAL)); tree_mark_columns(tree, pos, widget->priv.height - pos, - ACS_BTEE | gnt_color_pair(GNT_COLOR_NORMAL)); + (tree->show_separator ? ACS_BTEE : ACS_HLINE) | gnt_color_pair(GNT_COLOR_NORMAL)); } tree_mark_columns(tree, pos, pos + 1, (tree->show_separator ? ACS_PLUS : ACS_HLINE) | gnt_color_pair(GNT_COLOR_NORMAL));