Mercurial > pidgin.yaz
diff console/libgnt/gntcombobox.c @ 14493:5ac8f22e7b08
[gaim-migrate @ 17212]
Update the statuslist with appropriate list of stauses in the buddylist
when global status is changed.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 10 Sep 2006 00:17:44 +0000 |
parents | 3ac156db9cb6 |
children | d18b9360ba54 |
line wrap: on
line diff
--- a/console/libgnt/gntcombobox.c Sat Sep 09 21:58:04 2006 +0000 +++ b/console/libgnt/gntcombobox.c Sun Sep 10 00:17:44 2006 +0000 @@ -287,3 +287,16 @@ set_selection(box, key); } +void gnt_combo_box_remove(GntComboBox *box, gpointer key) +{ + gnt_tree_remove(GNT_TREE(box->dropdown), key); + if (box->selected == key) + set_selection(box, NULL); +} + +void gnt_combo_box_remove_all(GntComboBox *box) +{ + gnt_tree_remove_all(GNT_TREE(box->dropdown)); + set_selection(box, NULL); +} +