| 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) |