| 244 int value = (text && *text) ? atoi(text) : 0; |
244 int value = (text && *text) ? atoi(text) : 0; |
| 245 gaim_request_field_int_set_value(field, value); |
245 gaim_request_field_int_set_value(field, value); |
| 246 } |
246 } |
| 247 else if (type == GAIM_REQUEST_FIELD_CHOICE) |
247 else if (type == GAIM_REQUEST_FIELD_CHOICE) |
| 248 { |
248 { |
| 249 GntWidget *combo = field->ui_data;; |
249 GntWidget *combo = field->ui_data; |
| 250 int id; |
250 int id; |
| 251 id = GPOINTER_TO_INT(gnt_combo_box_get_selected_data(GNT_COMBO_BOX(combo))); |
251 id = GPOINTER_TO_INT(gnt_combo_box_get_selected_data(GNT_COMBO_BOX(combo))); |
| 252 gaim_request_field_choice_set_value(field, id); |
252 gaim_request_field_choice_set_value(field, id); |
| 253 } |
253 } |
| 254 else if (type == GAIM_REQUEST_FIELD_LIST) |
254 else if (type == GAIM_REQUEST_FIELD_LIST) |