Mercurial > pidgin
comparison finch/libgnt/gntcheckbox.c @ 26439:c67d43408daa
Update hardware cursor correctly.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 05 Apr 2009 08:22:22 +0000 |
parents | 9187d331aebe |
children | 8356e2f2486a |
comparison
equal
deleted
inserted
replaced
26438:fd97c0de433d | 26439:c67d43408daa |
---|---|
40 | 40 |
41 if (gnt_widget_has_focus(widget)) | 41 if (gnt_widget_has_focus(widget)) |
42 type = GNT_COLOR_HIGHLIGHT; | 42 type = GNT_COLOR_HIGHLIGHT; |
43 else | 43 else |
44 type = GNT_COLOR_NORMAL; | 44 type = GNT_COLOR_NORMAL; |
45 | 45 |
46 wbkgdset(widget->window, '\0' | gnt_color_pair(type)); | 46 wbkgdset(widget->window, '\0' | gnt_color_pair(type)); |
47 | 47 |
48 text = g_strdup_printf("[%c]", cb->checked ? 'X' : ' '); | 48 text = g_strdup_printf("[%c]", cb->checked ? 'X' : ' '); |
49 mvwaddstr(widget->window, 0, 0, text); | 49 mvwaddstr(widget->window, 0, 0, text); |
50 g_free(text); | 50 g_free(text); |
51 | 51 |
52 wbkgdset(widget->window, '\0' | gnt_color_pair(GNT_COLOR_NORMAL)); | 52 wbkgdset(widget->window, '\0' | gnt_color_pair(GNT_COLOR_NORMAL)); |
53 mvwaddstr(widget->window, 0, 4, GNT_BUTTON(cb)->priv->text); | 53 mvwaddstr(widget->window, 0, 4, GNT_BUTTON(cb)->priv->text); |
54 | 54 wmove(widget->window, 0, 1); |
55 | |
55 GNTDEBUG; | 56 GNTDEBUG; |
56 } | 57 } |
57 | 58 |
58 static void | 59 static void |
59 toggle_selection(GntWidget *widget) | 60 toggle_selection(GntWidget *widget) |