aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index a6f17fc546..4d702963b6 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1061,26 +1061,6 @@ emae_path_changed(GtkEntry *entry, EMAccountEditorService *service)
emae_service_url_changed(service, camel_url_set_path, entry);
}
-static void
-emae_needs_auth(GtkToggleButton *toggle, EMAccountEditorService *service)
-{
- GtkWidget *w;
- int need = gtk_toggle_button_get_active(toggle);
-
- w = glade_xml_get_widget(service->emae->priv->xml, emae_service_info[service->type].auth_frame);
- gtk_widget_set_sensitive(w, need);
-
- if (need)
- emae_authtype_changed(service->authtype, service);
- else {
- CamelURL *url = emae_account_url(service->emae, emae_service_info[service->type].account_uri_key);
-
- camel_url_set_authmech(url, NULL);
- emae_uri_changed(service, url);
- camel_url_free(url);
- }
-}
-
static int
emae_ssl_update(EMAccountEditorService *service, CamelURL *url)
{
@@ -1361,6 +1341,26 @@ emae_authtype_changed(GtkComboBox *dropdown, EMAccountEditorService *service)
gtk_widget_set_sensitive((GtkWidget *)service->remember, authtype?authtype->need_password:FALSE);
}
+static void
+emae_needs_auth(GtkToggleButton *toggle, EMAccountEditorService *service)
+{
+ GtkWidget *w;
+ int need = gtk_toggle_button_get_active(toggle);
+
+ w = glade_xml_get_widget(service->emae->priv->xml, emae_service_info[service->type].auth_frame);
+ gtk_widget_set_sensitive(w, need);
+
+ if (need)
+ emae_authtype_changed(service->authtype, service);
+ else {
+ CamelURL *url = emae_account_url(service->emae, emae_service_info[service->type].account_uri_key);
+
+ camel_url_set_authmech(url, NULL);
+ emae_uri_changed(service, url);
+ camel_url_free(url);
+ }
+}
+
static void emae_check_authtype(GtkWidget *w, EMAccountEditorService *service);
static GtkWidget *