[evolution] Bug 687060 - Identity page shows read-only GOA properties as editable



commit 709a2498efc54c0c0cdd00e9a40a5befcd01c403
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Oct 28 17:14:56 2012 -0400

    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 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-config-notebook.c b/mail/e-mail-config-notebook.c
index 4c8cbc9..0aff802 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 ***/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]