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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 436d24f62b..6c674465fe 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -107,6 +107,7 @@ typedef struct _EMAccountEditorService {
GtkEntry *path;
GtkLabel *pathlabel;
GtkWidget *pathentry;
+ GtkWidget *port_hint;
GtkWidget *ssl_frame;
GtkComboBox *use_ssl;
@@ -1968,6 +1969,12 @@ emae_setup_service (EMAccountEditor *emae, EMAccountEditorService *service, Glad
service->pathentry = glade_xml_get_widget (xml, info->pathentry);
}
+ service->port_hint = glade_xml_get_widget (xml, "port_hint");
+ if (!service->provider || CAMEL_PROVIDER_NEEDS(service->provider, CAMEL_URL_PART_HOST))
+ gtk_widget_show (service->port_hint);
+ else
+ gtk_widget_hide (service->port_hint);
+
service->ssl_frame = glade_xml_get_widget (xml, info->security_frame);
gtk_widget_hide (service->ssl_frame);
service->ssl_hbox = glade_xml_get_widget (xml, info->ssl_hbox);