diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-10-29 05:14:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-10-29 05:18:15 +0800 |
commit | 709a2498efc54c0c0cdd00e9a40a5befcd01c403 (patch) | |
tree | 45a48ca95557e971acc9352e96eaafb08469f5c7 /mail/e-mail-config-notebook.c | |
parent | abb81c8b831cc7e5c6513e9b7c79d6a4fa0c5cc6 (diff) | |
download | gsoc2013-evolution-709a2498efc54c0c0cdd00e9a40a5befcd01c403.tar.gz gsoc2013-evolution-709a2498efc54c0c0cdd00e9a40a5befcd01c403.tar.zst gsoc2013-evolution-709a2498efc54c0c0cdd00e9a40a5befcd01c403.zip |
Bug 687060 - Identity page shows read-only GOA properties as editable
Hide the account name and email address fields when editing an Evolution
account linked to a GNOME Online Account.
Diffstat (limited to 'mail/e-mail-config-notebook.c')
-rw-r--r-- | mail/e-mail-config-notebook.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/e-mail-config-notebook.c b/mail/e-mail-config-notebook.c index 4c8cbc9c46..0aff802df5 100644 --- a/mail/e-mail-config-notebook.c +++ b/mail/e-mail-config-notebook.c @@ -311,6 +311,7 @@ mail_config_notebook_constructed (GObject *object) gboolean add_receiving_page = TRUE; gboolean add_sending_page = TRUE; gboolean add_transport_source; + gboolean gnome_online_account = FALSE; notebook = E_MAIL_CONFIG_NOTEBOOK (object); @@ -333,6 +334,7 @@ mail_config_notebook_constructed (GObject *object) if (source != NULL) { extension_name = E_SOURCE_EXTENSION_GOA; if (e_source_has_extension (source, extension_name)) { + gnome_online_account = TRUE; add_receiving_page = FALSE; add_sending_page = FALSE; } @@ -365,6 +367,12 @@ mail_config_notebook_constructed (GObject *object) registry, notebook->priv->identity_source); e_mail_config_identity_page_set_show_instructions ( E_MAIL_CONFIG_IDENTITY_PAGE (page), FALSE); + if (gnome_online_account) { + e_mail_config_identity_page_set_show_account_info ( + E_MAIL_CONFIG_IDENTITY_PAGE (page), FALSE); + e_mail_config_identity_page_set_show_email_address ( + E_MAIL_CONFIG_IDENTITY_PAGE (page), FALSE); + } e_mail_config_notebook_add_page (notebook, page); /*** Receiving Page ***/ |