diff options
author | Dan Winship <danw@src.gnome.org> | 2001-03-22 06:20:56 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-03-22 06:20:56 +0800 |
commit | 88bfa9d863e30e11be1a6435df3eba1624667194 (patch) | |
tree | 161808499a4ac524d78fd845ea57b8521330118b /mail/mail-account-editor.c | |
parent | 5d562c3d3d879d05c75ecb300c53e0b5ae0120fc (diff) | |
download | gsoc2013-evolution-88bfa9d863e30e11be1a6435df3eba1624667194.tar gsoc2013-evolution-88bfa9d863e30e11be1a6435df3eba1624667194.tar.gz gsoc2013-evolution-88bfa9d863e30e11be1a6435df3eba1624667194.tar.bz2 gsoc2013-evolution-88bfa9d863e30e11be1a6435df3eba1624667194.tar.lz gsoc2013-evolution-88bfa9d863e30e11be1a6435df3eba1624667194.tar.xz gsoc2013-evolution-88bfa9d863e30e11be1a6435df3eba1624667194.tar.zst gsoc2013-evolution-88bfa9d863e30e11be1a6435df3eba1624667194.zip |
Use the new URL part macros
* mail-config-druid.c (incoming_check, incoming_type_changed,
transport_check, transport_type_changed):
* mail-account-editor.c (transport_type_changed, source_check):
Use the new URL part macros
* mail-config.c (check_service_check): Use provider authtype list
if not connecting.
svn path=/trunk/; revision=8873
Diffstat (limited to 'mail/mail-account-editor.c')
-rw-r--r-- | mail/mail-account-editor.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mail/mail-account-editor.c b/mail/mail-account-editor.c index 757cb41ef3..2c4b2e8e93 100644 --- a/mail/mail-account-editor.c +++ b/mail/mail-account-editor.c @@ -497,7 +497,7 @@ transport_type_changed (GtkWidget *widget, gpointer user_data) /* hostname */ label = glade_xml_get_widget (editor->gui, "lblTransportHost"); - if (provider->url_flags & CAMEL_URL_ALLOW_HOST) { + if (CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_HOST)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->transport_host), TRUE); gtk_widget_set_sensitive (label, TRUE); } else { @@ -508,7 +508,7 @@ transport_type_changed (GtkWidget *widget, gpointer user_data) /* username */ label = glade_xml_get_widget (editor->gui, "lblTransportUser"); - if (provider->url_flags & CAMEL_URL_ALLOW_AUTH) { + if (CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_AUTH)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->transport_user), TRUE); gtk_widget_set_sensitive (label, TRUE); } else { @@ -519,7 +519,7 @@ transport_type_changed (GtkWidget *widget, gpointer user_data) /* password */ label = glade_xml_get_widget (editor->gui, "lblTransportPasswd"); - if (provider->url_flags & CAMEL_URL_ALLOW_AUTH) { + if (CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_AUTH)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->transport_passwd), TRUE); gtk_widget_set_sensitive (GTK_WIDGET (editor->transport_save_passwd), TRUE); gtk_widget_set_sensitive (label, TRUE); @@ -532,7 +532,7 @@ transport_type_changed (GtkWidget *widget, gpointer user_data) /* auth */ label = glade_xml_get_widget (editor->gui, "lblTransportAuth"); - if (provider->url_flags & CAMEL_URL_ALLOW_AUTH) { + if (CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_AUTH)) { CamelURL *url; char *host; @@ -642,7 +642,7 @@ source_check (MailAccountEditor *editor, CamelURL *url) /* host */ label = glade_xml_get_widget (editor->gui, "lblSourceHost"); - if (url && provider->url_flags & CAMEL_URL_ALLOW_HOST) { + if (url && CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_HOST)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->source_host), TRUE); gtk_widget_set_sensitive (label, TRUE); } else { @@ -652,7 +652,7 @@ source_check (MailAccountEditor *editor, CamelURL *url) /* user */ label = glade_xml_get_widget (editor->gui, "lblSourceUser"); - if (url && provider->url_flags & CAMEL_URL_ALLOW_USER) { + if (url && CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_USER)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->source_user), TRUE); gtk_widget_set_sensitive (label, TRUE); } else { @@ -662,7 +662,7 @@ source_check (MailAccountEditor *editor, CamelURL *url) /* path */ label = glade_xml_get_widget (editor->gui, "lblSourcePath"); - if (url && provider->url_flags & CAMEL_URL_ALLOW_PATH) { + if (url && CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_PATH)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->source_path), TRUE); gtk_widget_set_sensitive (label, TRUE); } else { @@ -672,7 +672,7 @@ source_check (MailAccountEditor *editor, CamelURL *url) /* auth */ label = glade_xml_get_widget (editor->gui, "lblSourceAuth"); - if (url && provider->url_flags & CAMEL_URL_ALLOW_AUTH) { + if (url && CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_AUTH)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->source_auth), TRUE); gtk_widget_set_sensitive (label, TRUE); } else { @@ -682,7 +682,7 @@ source_check (MailAccountEditor *editor, CamelURL *url) /* passwd */ label = glade_xml_get_widget (editor->gui, "lblSourcePasswd"); - if (url && provider->url_flags & CAMEL_URL_ALLOW_PASSWORD) { + if (url && CAMEL_PROVIDER_ALLOWS (provider, CAMEL_URL_PART_PASSWORD)) { gtk_widget_set_sensitive (GTK_WIDGET (editor->source_passwd), TRUE); gtk_widget_set_sensitive (GTK_WIDGET (editor->source_save_passwd), TRUE); gtk_widget_set_sensitive (label, TRUE); |