Mercurial > pidgin.yaz
diff finch/libgnt/gnttree.c @ 26521:c67d43408daa
Update hardware cursor correctly.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 05 Apr 2009 08:22:22 +0000 |
parents | 55f4261e1358 |
children | 8df78c06d10e |
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c Sun Apr 05 04:34:48 2009 +0000 +++ b/finch/libgnt/gnttree.c Sun Apr 05 08:22:22 2009 +0000 @@ -420,6 +420,7 @@ GntTreeRow *row; int pos, up, down = 0; int rows, scrcol; + int current = 0; if (!GNT_WIDGET_IS_FLAG_SET(GNT_WIDGET(tree), GNT_WIDGET_MAPPED)) return; @@ -518,6 +519,7 @@ if (row == tree->current) { + current = i; attr |= A_BOLD; if (gnt_widget_has_focus(widget)) attr |= gnt_color_pair(GNT_COLOR_HIGHLIGHT); @@ -606,6 +608,7 @@ mvwaddnstr(widget->window, widget->priv.height - pos - 1, pos, tree->priv->search->str, str - tree->priv->search->str); } + wmove(widget->window, current, pos); gnt_widget_queue_update(widget); }