changeset 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 1812b8ccfd7a
children b2d3f529f500
files finch/libgnt/gnttree.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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));