From ae49f89b72320b0ee9f0b7bf6fff7ae06ebb3b05 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 22 Jun 2012 10:38:50 -0400 Subject: Bug 678613 - Keep display name synchronized across all mail sources --- mail/e-mail-config-notebook.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'mail/e-mail-config-notebook.c') 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 ( -- cgit v1.2.3