[evolution-kolab] Collection: set sources deletable as we find them (in online mode)
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] Collection: set sources deletable as we find them (in online mode)
- Date: Thu, 20 Sep 2012 15:30:46 +0000 (UTC)
commit ef2347b3bf35e476ef4dcc18accd746c471635d2
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Thu Sep 20 16:00:20 2012 +0200
Collection: set sources deletable as we find them (in online mode)
* when syncing the list of PIM folders to display in Evo,
set these folders deletable at least in online mode
* in offline mode, an attempt to delete a folder would fail,
since our engine requires online mode for that
* if starting out in offline mode and switching to online
mode later on, the folders might stay undeletable
at present (needs fixing)
src/collection/e-kolab-backend.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/collection/e-kolab-backend.c b/src/collection/e-kolab-backend.c
index d0acdd0..603aff1 100644
--- a/src/collection/e-kolab-backend.c
+++ b/src/collection/e-kolab-backend.c
@@ -632,6 +632,10 @@ e_kolab_backend_sync_folders_sync (EKolabBackend *backend,
list = e_collection_backend_claim_all_resources (col_backend);
for (link = list; link != NULL; link = g_list_next (link))
+ /* FIXME should we set the source deletable here
+ * itself, though trying to remove a source while
+ * in offline mode will fail?
+ */
e_source_registry_server_add_source (
server, E_SOURCE (link->data));
@@ -668,6 +672,7 @@ e_kolab_backend_sync_folders_sync (EKolabBackend *backend,
source = e_kolab_backend_new_child (backend, desc);
if (source != NULL) {
+ e_server_side_source_set_remote_deletable (E_SERVER_SIDE_SOURCE (source), TRUE);
e_source_registry_server_add_source (server, source);
g_object_unref (source);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]