Mercurial > pidgin.yaz
comparison console/libgnt/gntbutton.c @ 13907:cc60d0861337
[gaim-migrate @ 16402]
This commit has 1234 lines of diff :)
Windows can now be moved (alt+m, then the arrow keys, then escape/enter).
Add a window to enable/disable accounts. But the 'add' etc. buttons don't
have any callbacks yet. I am going to need to do some more widgets (checkbox,
combobox) before I do anything else.
I have also updated the test programs to work with the changes in libgnt.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 02 Jul 2006 22:13:06 +0000 |
parents | 9d66969a2e32 |
children | 3dbcbc5e57e1 |
comparison
equal
deleted
inserted
replaced
13906:b986b6e2441b | 13907:cc60d0861337 |
---|---|
14 gnt_button_draw(GntWidget *widget) | 14 gnt_button_draw(GntWidget *widget) |
15 { | 15 { |
16 GntButton *button = GNT_BUTTON(widget); | 16 GntButton *button = GNT_BUTTON(widget); |
17 GntColorType type; | 17 GntColorType type; |
18 | 18 |
19 if (GNT_WIDGET_FLAGS(widget) & GNT_WIDGET_HAS_FOCUS) | 19 if (gnt_widget_has_focus(widget)) |
20 type = GNT_COLOR_HIGHLIGHT; | 20 type = GNT_COLOR_HIGHLIGHT; |
21 else | 21 else |
22 type = GNT_COLOR_NORMAL; | 22 type = GNT_COLOR_NORMAL; |
23 | |
23 wbkgdset(widget->window, '\0' | COLOR_PAIR(type)); | 24 wbkgdset(widget->window, '\0' | COLOR_PAIR(type)); |
24 mvwprintw(widget->window, 1, 1, button->priv->text); | 25 mvwprintw(widget->window, 1, 1, button->priv->text); |
25 | 26 |
26 DEBUG; | 27 DEBUG; |
27 } | 28 } |