From cc55cf3e686ad873cb14129f48d06f83ecc97e68 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 22 Jun 2012 14:18:16 -0400 Subject: Keep display names synchronized during account creation. --- mail/e-mail-config-assistant.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'mail/e-mail-config-assistant.c') diff --git a/mail/e-mail-config-assistant.c b/mail/e-mail-config-assistant.c index 16d0e2e42a..70f60e66ea 100644 --- a/mail/e-mail-config-assistant.c +++ b/mail/e-mail-config-assistant.c @@ -602,6 +602,13 @@ mail_config_assistant_constructed (GObject *object) e_source_backend_set_backend_name ( backend_extension, backend_name); + /* Keep display names synchronized. */ + g_object_bind_property ( + identity_source, "display-name", + scratch_source, "display-name", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); + /* We always pass NULL for the collection argument. * The backend generates its own scratch collection * source if implements the new_collection() method. */ @@ -672,6 +679,13 @@ mail_config_assistant_constructed (GObject *object) e_source_backend_set_backend_name ( backend_extension, backend_name); + /* Keep display names synchronized. */ + g_object_bind_property ( + identity_source, "display-name", + scratch_source, "display-name", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); + /* We always pass NULL for the collection argument. * The backend generates its own scratch collection * source if implements the new_collection() method. */ -- cgit v1.2.3