aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail-config
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-08-06 17:18:32 +0800
committerMilan Crha <mcrha@redhat.com>2012-08-06 17:18:32 +0800
commit82b67c38f4a54ad10cce86bc541c5608374a20a1 (patch)
treeafe6c75a64c7198073ad1393ea387331bbd1b390 /modules/mail-config
parent71541a2bb93c85cd526a1399ce2cbf8c94ece691 (diff)
downloadgsoc2013-evolution-82b67c38f4a54ad10cce86bc541c5608374a20a1.tar.gz
gsoc2013-evolution-82b67c38f4a54ad10cce86bc541c5608374a20a1.tar.zst
gsoc2013-evolution-82b67c38f4a54ad10cce86bc541c5608374a20a1.zip
Bug #681017 - Bogus SMTP port in the account manager UI
Diffstat (limited to 'modules/mail-config')
-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 (