aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/mail-config/e-mail-config-smtp-backend.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mail-config/e-mail-config-smtp-backend.c b/modules/mail-config/e-mail-config-smtp-backend.c
index 0a9a65abfa..fe992b3507 100644
--- a/modules/mail-config/e-mail-config-smtp-backend.c
+++ b/modules/mail-config/e-mail-config-smtp-backend.c
@@ -65,6 +65,7 @@ mail_config_smtp_backend_insert_widgets (EMailConfigServiceBackend *backend,
const gchar *extension_name;
const gchar *mechanism;
const gchar *text;
+ guint16 port;
gchar *markup;
priv = E_MAIL_CONFIG_SMTP_BACKEND_GET_PRIVATE (backend);
@@ -239,6 +240,9 @@ mail_config_smtp_backend_insert_widgets (EMailConfigServiceBackend *backend,
priv->user_entry = widget; /* do not reference */
gtk_widget_show (widget);
+ port = 0;
+ g_object_get (G_OBJECT (settings), "port", &port, NULL);
+
g_object_bind_property (
settings, "host",
priv->host_entry, "text",
@@ -271,6 +275,9 @@ mail_config_smtp_backend_insert_widgets (EMailConfigServiceBackend *backend,
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE);
+ if (port != 0)
+ g_object_set (G_OBJECT (priv->port_entry), "port", port, NULL);
+
/* Enable the auth-required toggle button if
* we have an authentication mechanism name. */
mechanism = camel_network_settings_get_auth_mechanism (