From 709a2498efc54c0c0cdd00e9a40a5befcd01c403 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 28 Oct 2012 17:14:56 -0400 Subject: 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. --- mail/e-mail-config-notebook.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mail') 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 ***/ -- cgit v1.2.3