Mercurial > pidgin
comparison console/libgnt/gntcombobox.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 | a71678d2da16 |
children | 143474e2b1cb |
comparison
equal
deleted
inserted
replaced
14040:80891029f5dd | 14041:27182f83b79b |
---|---|
21 if (box->selected != key) | 21 if (box->selected != key) |
22 { | 22 { |
23 /* XXX: make sure the key actually does exist */ | 23 /* XXX: make sure the key actually does exist */ |
24 gpointer old = box->selected; | 24 gpointer old = box->selected; |
25 box->selected = key; | 25 box->selected = key; |
26 g_signal_emit(box, signals[SIG_SELECTION_CHANGED], 0, old, key); | |
27 if (GNT_WIDGET(box)->window) | 26 if (GNT_WIDGET(box)->window) |
28 gnt_widget_draw(GNT_WIDGET(box)); | 27 gnt_widget_draw(GNT_WIDGET(box)); |
29 if (box->dropdown) | 28 if (box->dropdown) |
30 gnt_tree_set_selected(GNT_TREE(box->dropdown), key); | 29 gnt_tree_set_selected(GNT_TREE(box->dropdown), key); |
30 g_signal_emit(box, signals[SIG_SELECTION_CHANGED], 0, old, key); | |
31 } | 31 } |
32 } | 32 } |
33 | 33 |
34 static void | 34 static void |
35 gnt_combo_box_draw(GntWidget *widget) | 35 gnt_combo_box_draw(GntWidget *widget) |
63 *s = '\0'; | 63 *s = '\0'; |
64 len = widget->priv.width - 4; | 64 len = widget->priv.width - 4; |
65 } | 65 } |
66 | 66 |
67 mvwprintw(widget->window, 1, 1, text); | 67 mvwprintw(widget->window, 1, 1, text); |
68 whline(widget->window, '\0' | COLOR_PAIR(type), widget->priv.width - 4 - len); | 68 whline(widget->window, ' ' | COLOR_PAIR(type), widget->priv.width - 4 - len); |
69 mvwaddch(widget->window, 1, widget->priv.width - 3, ACS_VLINE | COLOR_PAIR(GNT_COLOR_NORMAL)); | 69 mvwaddch(widget->window, 1, widget->priv.width - 3, ACS_VLINE | COLOR_PAIR(GNT_COLOR_NORMAL)); |
70 mvwaddch(widget->window, 1, widget->priv.width - 2, ACS_DARROW | COLOR_PAIR(GNT_COLOR_NORMAL)); | 70 mvwaddch(widget->window, 1, widget->priv.width - 2, ACS_DARROW | COLOR_PAIR(GNT_COLOR_NORMAL)); |
71 | 71 |
72 g_free(text); | 72 g_free(text); |
73 DEBUG; | 73 DEBUG; |