| 232 gaim_request_field_bool_set_value(field, value); |
232 gaim_request_field_bool_set_value(field, value); |
| 233 } |
233 } |
| 234 else if (type == GAIM_REQUEST_FIELD_STRING) |
234 else if (type == GAIM_REQUEST_FIELD_STRING) |
| 235 { |
235 { |
| 236 GntWidget *entry = field->ui_data; |
236 GntWidget *entry = field->ui_data; |
| 237 gaim_request_field_string_set_value(field, gnt_entry_get_text(GNT_ENTRY(entry))); |
237 const char *text = gnt_entry_get_text(GNT_ENTRY(entry)); |
| |
238 gaim_request_field_string_set_value(field, (text && *text) ? text : NULL); |
| 238 } |
239 } |
| 239 else if (type == GAIM_REQUEST_FIELD_INTEGER) |
240 else if (type == GAIM_REQUEST_FIELD_INTEGER) |
| 240 { |
241 { |
| 241 GntWidget *entry = field->ui_data; |
242 GntWidget *entry = field->ui_data; |
| 242 const char *text = gnt_entry_get_text(GNT_ENTRY(entry)); |
243 const char *text = gnt_entry_get_text(GNT_ENTRY(entry)); |