Mercurial > pidgin
comparison console/libgnt/gnttree.c @ 13882:5c750626eaa5
[gaim-migrate @ 16362]
New widget GntTextView. It's really simple as it is. But it 'works'.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 28 Jun 2006 00:17:35 +0000 |
parents | 0d0ab1e39d0a |
children | 9d66969a2e32 |
comparison
equal
deleted
inserted
replaced
13881:5d5e249c488e | 13882:5c750626eaa5 |
---|---|
201 str[wr] = 0; | 201 str[wr] = 0; |
202 } | 202 } |
203 | 203 |
204 if (row == tree->current) | 204 if (row == tree->current) |
205 { | 205 { |
206 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_HIGHLIGHT)); | 206 if (GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) |
207 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_HIGHLIGHT)); | |
208 else | |
209 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_HIGHLIGHT_D)); /* XXX: This, somehow, doesn't work */ | |
207 mvwprintw(widget->window, start, pos, str); | 210 mvwprintw(widget->window, start, pos, str); |
208 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); | 211 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); |
209 } | 212 } |
210 else | 213 else |
211 mvwprintw(widget->window, start, pos, str); | 214 mvwprintw(widget->window, start, pos, str); |