| 375 } |
375 } |
| 376 } |
376 } |
| 377 |
377 |
| 378 purple_notify_close_with_handle(button); |
378 purple_notify_close_with_handle(button); |
| 379 |
379 |
| 380 if (!g_object_get_data(G_OBJECT(button), "cancellation-function") && |
380 if(!g_object_get_data(G_OBJECT(button), "cancellation-function") && |
| 381 (!purple_request_page_all_required_filled(page) || |
381 !purple_request_page_is_valid(page)) |
| 382 !purple_request_page_is_valid(page))) { |
382 { |
| 383 purple_notify_error(button, _("Error"), |
383 purple_notify_error(button, _("Error"), |
| 384 _("You must properly fill all the required fields."), |
384 _("You must properly fill all the required fields."), |
| 385 _("The required fields are underlined."), NULL); |
385 _("The required fields are underlined."), NULL); |
| 386 return; |
386 return; |
| 387 } |
387 } |