[evolution-data-server/gnome-3-16] Bug 751005 - [GOA/UOA] Make collection sources writeable by default



commit ccb6373a293780c088a03b58cf92f0aced3ec95c
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 18 14:43:39 2015 +0200

    Bug 751005 - [GOA/UOA] Make collection sources writeable by default

 .../module-gnome-online-accounts.c                 |    5 +++--
 .../module-ubuntu-online-accounts.c                |    5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/modules/gnome-online-accounts/module-gnome-online-accounts.c 
b/modules/gnome-online-accounts/module-gnome-online-accounts.c
index c81b82e..e800c23 100644
--- a/modules/gnome-online-accounts/module-gnome-online-accounts.c
+++ b/modules/gnome-online-accounts/module-gnome-online-accounts.c
@@ -660,9 +660,10 @@ gnome_online_accounts_config_collection (EGnomeOnlineAccounts *extension,
        /* Handle optional GOA interfaces. */
        gnome_online_accounts_config_exchange (extension, source, goa_object);
 
+       e_server_side_source_set_writable (E_SERVER_SIDE_SOURCE (source), TRUE);
+
        /* The data source should not be removable by clients. */
-       e_server_side_source_set_removable (
-               E_SERVER_SIDE_SOURCE (source), FALSE);
+       e_server_side_source_set_removable (E_SERVER_SIDE_SOURCE (source), FALSE);
 
        if (goa_object_peek_oauth2_based (goa_object) != NULL) {
                /* This module provides OAuth 2.0 support to the collection.
diff --git a/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c 
b/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c
index 8788974..65a3f00 100644
--- a/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c
+++ b/modules/ubuntu-online-accounts/module-ubuntu-online-accounts.c
@@ -370,9 +370,10 @@ ubuntu_online_accounts_config_collection (EUbuntuOnlineAccounts *extension,
                g_hash_table_ref (account_services),
                (GDestroyNotify) g_hash_table_unref);
 
+       e_server_side_source_set_writable (E_SERVER_SIDE_SOURCE (source), TRUE);
+
        /* The data source should not be removable by clients. */
-       e_server_side_source_set_removable (
-               E_SERVER_SIDE_SOURCE (source), FALSE);
+       e_server_side_source_set_removable (E_SERVER_SIDE_SOURCE (source), FALSE);
 
        if (supports_oauth2) {
                /* This module provides OAuth 2.0 support to the collection.


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