Mercurial > pidgin
diff console/libgnt/gntentry.c @ 14041:27182f83b79b
[gaim-migrate @ 16647]
Statusbox comes in. It's now possible to change the account status. There's
nothing yet for creating custom statuses.
It's also possible now to delete accounts.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 05 Aug 2006 11:31:54 +0000 |
parents | 942170284c55 |
children | ae4cbed1b309 |
line wrap: on
line diff
--- a/console/libgnt/gntentry.c Sat Aug 05 09:19:14 2006 +0000 +++ b/console/libgnt/gntentry.c Sat Aug 05 11:31:54 2006 +0000 @@ -16,8 +16,9 @@ { GntEntry *entry = GNT_ENTRY(widget); int stop; + gboolean focus; - if (gnt_widget_has_focus(widget)) + if ((focus = gnt_widget_has_focus(widget))) wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_TEXT_NORMAL)); else wbkgdset(widget->window, '\0' | COLOR_PAIR(GNT_COLOR_HIGHLIGHT_D)); @@ -34,8 +35,9 @@ if (stop < widget->priv.width) mvwhline(widget->window, 0, stop, ENTRY_CHAR, widget->priv.width - stop); - mvwchgat(widget->window, 0, g_utf8_pointer_to_offset(entry->scroll, entry->cursor), 1, - A_REVERSE, COLOR_PAIR(GNT_COLOR_TEXT_NORMAL), NULL); + if (focus) + mvwchgat(widget->window, 0, g_utf8_pointer_to_offset(entry->scroll, entry->cursor), + 1, A_REVERSE, COLOR_PAIR(GNT_COLOR_TEXT_NORMAL), NULL); DEBUG; }