From 439bc7a3ec18635897c63d572e46288775fd5594 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 9 Jul 2001 23:55:02 +0000 Subject: Handle application/pgp using the text/plain handler. 2001-07-09 Jeffrey Stedfast * mail-format.c (setup_mime_tables): Handle application/pgp using the text/plain handler. * mail-account-gui.c (get_sensitive_widget): New function to determine which widget is focused. * mail-account-editor.c (apply_changes): Not only flip to the notebook page that wasn't finished, but also grab the focus of the incomplete widget. * mail-config-druid.c (source_changed): Grab the focus of the incomplete widget. (transport_prepare): And here. (identity_changed): Here too. * mail-account-gui.c (mail_account_gui_identity_complete): Take an incomplete argument so we can set which widget is incomplete and then the caller can focus it or whatever. (service_complete): Same. (mail_account_gui_transport_complete): And again here. (mail_account_gui_management_complete): And here too. svn path=/trunk/; revision=10939 --- mail/mail-account-editor.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mail/mail-account-editor.c') diff --git a/mail/mail-account-editor.c b/mail/mail-account-editor.c index fa706b5e0d..f5084270d3 100644 --- a/mail/mail-account-editor.c +++ b/mail/mail-account-editor.c @@ -90,18 +90,20 @@ static gboolean apply_changes (MailAccountEditor *editor) { MailConfigAccount *account; + GtkWidget *incomplete; int page = -1; - if (!mail_account_gui_identity_complete (editor->gui) || - !mail_account_gui_management_complete (editor->gui)) + if (!mail_account_gui_identity_complete (editor->gui, &incomplete) || + !mail_account_gui_management_complete (editor->gui, &incomplete)) page = 0; - else if (!mail_account_gui_source_complete (editor->gui)) + else if (!mail_account_gui_source_complete (editor->gui, &incomplete)) page = 1; - else if (!mail_account_gui_transport_complete (editor->gui)) + else if (!mail_account_gui_transport_complete (editor->gui, &incomplete)) page = 3; if (page != -1) { gtk_notebook_set_page (editor->notebook, page); + gtk_widget_grab_focus (incomplete); e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("You have not filled in all of the required information.")); return FALSE; } -- cgit