[evolution] Bug 678613 - Keep display name synchronized across all mail sources
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 678613 - Keep display name synchronized across all mail sources
- Date: Fri, 22 Jun 2012 14:39:44 +0000 (UTC)
commit ae49f89b72320b0ee9f0b7bf6fff7ae06ebb3b05
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Jun 22 10:38:50 2012 -0400
Bug 678613 - Keep display name synchronized across all mail sources
mail/e-mail-config-notebook.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-config-notebook.c b/mail/e-mail-config-notebook.c
index 4a9b62c..8c437e4 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 (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]