Mercurial > pidgin.yaz
comparison console/libgnt/gntentry.c @ 13896:a621329e8c85
[gaim-migrate @ 16381]
Changes in GntTextView. Things go somewhat 'smooth' when run inside
valgrind. Otherwise, it's kind of flaky. I don't mind a single bit
if someone gave me a hint :)
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 01 Jul 2006 00:56:05 +0000 |
parents | 9d66969a2e32 |
children | 3dbcbc5e57e1 |
comparison
equal
deleted
inserted
replaced
13895:8f910263b4bb | 13896:a621329e8c85 |
---|---|
15 gnt_entry_draw(GntWidget *widget) | 15 gnt_entry_draw(GntWidget *widget) |
16 { | 16 { |
17 GntEntry *entry = GNT_ENTRY(widget); | 17 GntEntry *entry = GNT_ENTRY(widget); |
18 int stop; | 18 int stop; |
19 | 19 |
20 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_TEXT_NORMAL)); | 20 if (gnt_widget_has_focus(widget)) |
21 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_TEXT_NORMAL)); | |
22 else | |
23 wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_HIGHLIGHT_D)); | |
21 mvwprintw(widget->window, 0, 0, entry->scroll); | 24 mvwprintw(widget->window, 0, 0, entry->scroll); |
22 | 25 |
23 stop = entry->end - entry->scroll; | 26 stop = entry->end - entry->scroll; |
24 if (stop < widget->priv.width) | 27 if (stop < widget->priv.width) |
25 mvwhline(widget->window, 0, stop, ENTRY_CHAR, widget->priv.width - stop); | 28 mvwhline(widget->window, 0, stop, ENTRY_CHAR, widget->priv.width - stop); |