diff options
Diffstat (limited to 'mail/e-mail-config-notebook.c')
-rw-r--r-- | mail/e-mail-config-notebook.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/mail/e-mail-config-notebook.c b/mail/e-mail-config-notebook.c index 0aff802df5..fd43b20c7e 100644 --- a/mail/e-mail-config-notebook.c +++ b/mail/e-mail-config-notebook.c @@ -311,7 +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; + gboolean online_account = FALSE; notebook = E_MAIL_CONFIG_NOTEBOOK (object); @@ -328,13 +328,21 @@ mail_config_notebook_constructed (GObject *object) mail_identity_extension = E_SOURCE_MAIL_IDENTITY (extension); /* If we have a collection source and the collection source - * has a [GNOME Online Accounts] extension, skip the Receiving - * and Sending pages since GOA dictates those settings. */ + * has a [GNOME Online Accounts] or [Ubuntu Online Accounts] + * extension, skip the Receiving and Sending pages since GOA + * and UOA dictates those settings. */ source = notebook->priv->collection_source; if (source != NULL) { extension_name = E_SOURCE_EXTENSION_GOA; if (e_source_has_extension (source, extension_name)) { - gnome_online_account = TRUE; + online_account = TRUE; + add_receiving_page = FALSE; + add_sending_page = FALSE; + } + + extension_name = E_SOURCE_EXTENSION_UOA; + if (e_source_has_extension (source, extension_name)) { + online_account = TRUE; add_receiving_page = FALSE; add_sending_page = FALSE; } @@ -367,7 +375,7 @@ 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) { + if (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 ( |