qulogic/libgnt

Draw the 'header' correctly when not showing borders.
next.minor
2007-10-26, Sadrul Habib Chowdhury
c428715f4b87
Parents 9666fbd59dca
Children 8f1b5e00faf4
Draw the 'header' correctly when not showing borders.
  • +3 -2
    gnttree.c
  • --- a/gnttree.c Fri Oct 26 07:27:00 2007 +0000
    +++ b/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));