[evolution-data-server] ECollectionBackend: Minor cleanup.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] ECollectionBackend: Minor cleanup.
- Date: Sun, 15 Jul 2012 15:06:51 +0000 (UTC)
commit 26409952d5d88ccbb92878ec3780cd1016d083d2
Author: Matthew Barnes <mbarnes redhat com>
Date: Sun Jul 15 10:01:18 2012 -0400
ECollectionBackend: Minor cleanup.
libebackend/e-collection-backend.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libebackend/e-collection-backend.c b/libebackend/e-collection-backend.c
index 888b5a5..9699b2f 100644
--- a/libebackend/e-collection-backend.c
+++ b/libebackend/e-collection-backend.c
@@ -118,6 +118,7 @@ collection_backend_new_source (ECollectionBackend *backend,
ESourceRegistryServer *server;
ESource *child_source;
ESource *collection_source;
+ EServerSideSource *server_side_source;
const gchar *cache_dir;
const gchar *collection_uid;
@@ -128,16 +129,16 @@ collection_backend_new_source (ECollectionBackend *backend,
if (child_source == NULL)
return NULL;
+ server_side_source = E_SERVER_SIDE_SOURCE (child_source);
+
/* Clients may change the source but may not remove it. */
- e_server_side_source_set_writable (
- E_SERVER_SIDE_SOURCE (child_source), TRUE);
- e_server_side_source_set_removable (
- E_SERVER_SIDE_SOURCE (child_source), FALSE);
+ e_server_side_source_set_writable (server_side_source, TRUE);
+ e_server_side_source_set_removable (server_side_source, FALSE);
/* Changes should be written back to the cache directory. */
cache_dir = e_collection_backend_get_cache_dir (backend);
e_server_side_source_set_write_directory (
- E_SERVER_SIDE_SOURCE (child_source), cache_dir);
+ server_side_source, cache_dir);
/* Configure the child source as a collection member. */
collection_source = e_backend_get_source (E_BACKEND (backend));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]