| 386 } |
386 } |
| 387 |
387 |
| 388 purple_notify_close_with_handle(button); |
388 purple_notify_close_with_handle(button); |
| 389 |
389 |
| 390 if (!g_object_get_data(G_OBJECT(button), "cancellation-function") && |
390 if (!g_object_get_data(G_OBJECT(button), "cancellation-function") && |
| 391 !purple_request_fields_all_required_filled(fields)) { |
391 (!purple_request_fields_all_required_filled(fields) || |
| |
392 !purple_request_fields_all_valid(fields))) { |
| 392 purple_notify_error(button, _("Error"), |
393 purple_notify_error(button, _("Error"), |
| 393 _("You must fill all the required fields."), |
394 _("You must properly fill all the required fields."), |
| 394 _("The required fields are underlined.")); |
395 _("The required fields are underlined.")); |
| 395 return; |
396 return; |
| 396 } |
397 } |
| 397 |
398 |
| 398 if (callback) |
399 if (callback) |
| 399 callback(data, fields); |
400 callback(data, fields); |