diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-06-23 02:18:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-06-23 03:04:37 +0800 |
commit | cc55cf3e686ad873cb14129f48d06f83ecc97e68 (patch) | |
tree | 89a103b6aa41bf5749c25b0e3d47d34f33e40405 /mail/e-mail-config-assistant.c | |
parent | ae49f89b72320b0ee9f0b7bf6fff7ae06ebb3b05 (diff) | |
download | gsoc2013-evolution-cc55cf3e686ad873cb14129f48d06f83ecc97e68.tar gsoc2013-evolution-cc55cf3e686ad873cb14129f48d06f83ecc97e68.tar.gz gsoc2013-evolution-cc55cf3e686ad873cb14129f48d06f83ecc97e68.tar.bz2 gsoc2013-evolution-cc55cf3e686ad873cb14129f48d06f83ecc97e68.tar.lz gsoc2013-evolution-cc55cf3e686ad873cb14129f48d06f83ecc97e68.tar.xz gsoc2013-evolution-cc55cf3e686ad873cb14129f48d06f83ecc97e68.tar.zst gsoc2013-evolution-cc55cf3e686ad873cb14129f48d06f83ecc97e68.zip |
Keep display names synchronized during account creation.
Diffstat (limited to 'mail/e-mail-config-assistant.c')
-rw-r--r-- | mail/e-mail-config-assistant.c | 14 |
1 files changed, 14 insertions, 0 deletions
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. */ |