comparison console/libgnt/gntcombobox.c @ 13964:0a0d2a1fd2bc

[gaim-migrate @ 16520] Add multi-column support for GntTree. Use it for email-notifications. Restore colors before exiting. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 19 Jul 2006 07:12:59 +0000
parents 25be562aaca8
children a71678d2da16
comparison
equal deleted inserted replaced
13963:f7cfaee79982 13964:0a0d2a1fd2bc
233 return widget; 233 return widget;
234 } 234 }
235 235
236 void gnt_combo_box_add_data(GntComboBox *box, gpointer key, const char *text) 236 void gnt_combo_box_add_data(GntComboBox *box, gpointer key, const char *text)
237 { 237 {
238 gnt_tree_add_row_after(GNT_TREE(box->dropdown), key, text, NULL, NULL); 238 gnt_tree_add_row_after(GNT_TREE(box->dropdown), key,
239 gnt_tree_create_row(GNT_TREE(box->dropdown), text), NULL, NULL);
239 if (box->selected == NULL) 240 if (box->selected == NULL)
240 set_selection(box, key); 241 set_selection(box, key);
241 } 242 }
242 243
243 gpointer gnt_combo_box_get_selected_data(GntComboBox *box) 244 gpointer gnt_combo_box_get_selected_data(GntComboBox *box)