[evolution-data-server/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-data-server/gnome-3-16] Use e_source_remove_sync() instead of e_source_registry_server_remove_source()
- Date: Thu, 11 Jun 2015 12:06:45 +0000 (UTC)
commit c5041d307073bc830107cc59397212ce245445c7
Author: Milan Crha <mcrha redhat com>
Date: Thu Jun 11 14:05:39 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.
modules/google-backend/module-google-backend.c | 2 +-
modules/owncloud-backend/module-owncloud-backend.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/google-backend/module-google-backend.c b/modules/google-backend/module-google-backend.c
index de3ae6c..cfdf774 100644
--- a/modules/google-backend/module-google-backend.c
+++ b/modules/google-backend/module-google-backend.c
@@ -185,7 +185,7 @@ google_remove_unknown_sources_cb (gpointer resource_id,
source = e_source_registry_server_ref_source (server, uid);
if (source) {
- e_source_registry_server_remove_source (server, source);
+ e_source_remove_sync (source, NULL, NULL);
g_object_unref (source);
}
}
diff --git a/modules/owncloud-backend/module-owncloud-backend.c
b/modules/owncloud-backend/module-owncloud-backend.c
index a461dea..725bd6a 100644
--- a/modules/owncloud-backend/module-owncloud-backend.c
+++ b/modules/owncloud-backend/module-owncloud-backend.c
@@ -84,7 +84,7 @@ owncloud_remove_unknown_sources_cb (gpointer resource_id,
source = e_source_registry_server_ref_source (server, uid);
if (source) {
- e_source_registry_server_remove_source (server, source);
+ e_source_remove_sync (source, NULL, NULL);
g_object_unref (source);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]