[evolution-ews/gnome-3-16] Use e_source_remove_sync() instead of e_source_registry_server_remove_source()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-16] Use e_source_remove_sync() instead of e_source_registry_server_remove_source()
- Date: Thu, 11 Jun 2015 12:08:32 +0000 (UTC)
commit 07a1e0db79d20a1a081638f26daf83452d735db1
Author: Milan Crha <mcrha redhat com>
Date: Thu Jun 11 14:07:29 2015 +0200
Use e_source_remove_sync() instead of e_source_registry_server_remove_source()
The former calls the later internally, but apart of it it does few
useful things too, like removing the disk file, thus it is not
used the next start again.
src/collection/e-ews-backend.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/collection/e-ews-backend.c b/src/collection/e-ews-backend.c
index dd415bb..24f3d5b 100644
--- a/src/collection/e-ews-backend.c
+++ b/src/collection/e-ews-backend.c
@@ -339,13 +339,8 @@ static void
ews_backend_sync_deleted_folders (EEwsBackend *backend,
GSList *list)
{
- ECollectionBackend *collection_backend;
- ESourceRegistryServer *server;
GSList *link;
- collection_backend = E_COLLECTION_BACKEND (backend);
- server = e_collection_backend_ref_server (collection_backend);
-
for (link = list; link != NULL; link = g_slist_next (link)) {
const gchar *folder_id = link->data;
ESource *source = NULL;
@@ -359,12 +354,10 @@ ews_backend_sync_deleted_folders (EEwsBackend *backend,
/* This will trigger a "child-removed" signal and
* our handler will remove the hash table entry. */
- e_source_registry_server_remove_source (server, source);
+ e_source_remove_sync (source, NULL, NULL);
g_object_unref (source);
}
-
- g_object_unref (server);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]