Mercurial > pidgin.yaz
diff finch/libgnt/gnttree.c @ 18726:68fec9f954dd
Make sure long titles remain within their own cell.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 30 Jul 2007 20:46:07 +0000 |
parents | a69ab280147b |
children | b5d6e360eca0 |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c Mon Jul 30 20:25:38 2007 +0000 +++ b/finch/libgnt/gnttree.c Mon Jul 30 20:46:07 2007 +0000 @@ -450,7 +450,7 @@ if (COLUMN_INVISIBLE(tree, i)) { continue; } - mvwaddstr(widget->window, pos, x + 1, tree->columns[i].title); + mvwaddnstr(widget->window, pos, x + (x != pos), tree->columns[i].title, tree->columns[i].width); NEXT_X; } if (pos)