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 df8ede8be0..f2d93a7363 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -102,6 +102,7 @@ typedef struct _EMAccountEditorService {
GtkEntry *path;
GtkLabel *pathlabel;
GtkWidget *pathentry;
+ GtkWidget *port_hint;
GtkWidget *ssl_frame;
GtkComboBox *use_ssl;
@@ -1676,6 +1677,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);