aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-editor.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-10 07:55:02 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-10 07:55:02 +0800
commit439bc7a3ec18635897c63d572e46288775fd5594 (patch)
treea4fadb8879f9581b5ba1cc78050b2246cfaf99c9 /mail/mail-account-editor.c
parent7367ac4cb65aa4a04025e68ebf25a619231a2ce5 (diff)
downloadgsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.gz
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.bz2
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.lz
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.xz
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.zst
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.zip
Handle application/pgp using the text/plain handler.
2001-07-09 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'mail/mail-account-editor.c')
-rw-r--r--mail/mail-account-editor.c10
1 files changed, 6 insertions, 4 deletions
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;
}