aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-06-22 22:38:50 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-22 22:39:35 +0800
commitae49f89b72320b0ee9f0b7bf6fff7ae06ebb3b05 (patch)
treec3b2c8f875b59886465271e3c688f1efac84813d /mail
parent9f9b8c590221d33530e23c33002058d5f30451bb (diff)
downloadgsoc2013-evolution-ae49f89b72320b0ee9f0b7bf6fff7ae06ebb3b05.tar.gz
gsoc2013-evolution-ae49f89b72320b0ee9f0b7bf6fff7ae06ebb3b05.tar.zst
gsoc2013-evolution-ae49f89b72320b0ee9f0b7bf6fff7ae06ebb3b05.zip
Bug 678613 - Keep display name synchronized across all mail sources
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-config-notebook.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/e-mail-config-notebook.c b/mail/e-mail-config-notebook.c
index 4a9b62c426..8c437e49a4 100644
--- a/mail/e-mail-config-notebook.c
+++ b/mail/e-mail-config-notebook.c
@@ -333,6 +333,27 @@ mail_config_notebook_constructed (GObject *object)
}
}
+ /* Keep all the display name properties synchronized.
+ * We consider the identity source's display name to
+ * be authoritative since technically that's the one
+ * shown on the Identity page. */
+
+ g_object_bind_property (
+ notebook->priv->identity_source, "display-name",
+ notebook->priv->account_source, "display-name",
+ G_BINDING_SYNC_CREATE);
+
+ g_object_bind_property (
+ notebook->priv->identity_source, "display-name",
+ notebook->priv->transport_source, "display-name",
+ G_BINDING_SYNC_CREATE);
+
+ if (notebook->priv->collection_source != NULL)
+ g_object_bind_property (
+ notebook->priv->identity_source, "display-name",
+ notebook->priv->collection_source, "display-name",
+ G_BINDING_SYNC_CREATE);
+
/*** Identity Page ***/
page = e_mail_config_identity_page_new (