[evolution-data-server/gnome-3-16] ownCloud/Google backends - make sure discovered sources are enabled



commit 66ca963d3fb5d40b68ae915f2d4891a6bfd8f6e8
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jun 11 14:23:27 2015 +0200

    ownCloud/Google backends - make sure discovered sources are enabled
    
    Otherwise they can be paired with the main account, but when they are
    kept disabled then they are not shown in the UI.

 modules/google-backend/module-google-backend.c     |    1 +
 modules/owncloud-backend/module-owncloud-backend.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/modules/google-backend/module-google-backend.c b/modules/google-backend/module-google-backend.c
index cfdf774..012af14 100644
--- a/modules/google-backend/module-google-backend.c
+++ b/modules/google-backend/module-google-backend.c
@@ -292,6 +292,7 @@ google_add_found_source (ECollectionBackend *collection,
                e_source_backend_set_backend_name (backend, provider);
 
                e_source_set_display_name (source, display_name);
+               e_source_set_enabled (source, TRUE);
 
                /* Also check whether the color format is as expected; it cannot
                   be used gdk_rgba_parse here, because it required gdk/gtk. */
diff --git a/modules/owncloud-backend/module-owncloud-backend.c 
b/modules/owncloud-backend/module-owncloud-backend.c
index 725bd6a..262e6cf 100644
--- a/modules/owncloud-backend/module-owncloud-backend.c
+++ b/modules/owncloud-backend/module-owncloud-backend.c
@@ -184,6 +184,7 @@ owncloud_source_found_cb (ECollectionBackend *collection,
                e_source_backend_set_backend_name (backend, provider);
 
                e_source_set_display_name (source, display_name);
+               e_source_set_enabled (source, TRUE);
 
                /* Also check whether the color format is as expected; it cannot
                   be used gdk_rgba_parse here, because it required gdk/gtk. */


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