[evolution-activesync/wip/camel-more-gobject] Seal CamelStore properties
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync/wip/camel-more-gobject] Seal CamelStore properties
- Date: Tue, 1 Nov 2016 22:13:29 +0000 (UTC)
commit 750aad0dc48bf635494b553f32635581493b323c
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 1 23:13:20 2016 +0100
Seal CamelStore properties
camel/camel-eas-store.c | 2 +-
camel/camel-eas-utils.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/camel/camel-eas-store.c b/camel/camel-eas-store.c
index e3f50e3..35deaac 100644
--- a/camel/camel-eas-store.c
+++ b/camel/camel-eas-store.c
@@ -126,7 +126,7 @@ eas_store_construct (CamelService *service, CamelSession *session,
/* Disable virtual trash and junk folders. Exchange has real
folders for that */
- ((CamelStore *)eas_store)->flags &= ~(CAMEL_STORE_VTRASH|CAMEL_STORE_VJUNK);
+ camel_store_set_flags (CAMEL_STORE (eas_store), camel_store_get_flags (CAMEL_STORE (eas_store)) &
~(CAMEL_STORE_VTRASH | CAMEL_STORE_VJUNK));
/*storage path*/
session_storage_path = g_strdup (camel_service_get_user_data_dir (service));
diff --git a/camel/camel-eas-utils.c b/camel/camel-eas-utils.c
index e2428df..96bd814 100644
--- a/camel/camel-eas-utils.c
+++ b/camel/camel-eas-utils.c
@@ -243,7 +243,7 @@ camel_eas_utils_sync_deleted_items (CamelEasFolder *eas_folder, GSList *items_de
camel_data_cache_remove (eas_folder->cache, "cur", item->server_id, NULL);
count++;
}
- camel_db_delete_uids (((CamelStore *)eas_store)->cdb_w, full_name, uids_deleted, NULL);
+ camel_db_delete_uids (camel_store_get_db (CAMEL_STORE (eas_store)), full_name, uids_deleted, NULL);
camel_folder_changed ((CamelFolder *) eas_folder, ci);
camel_folder_change_info_free (ci);
@@ -286,7 +286,7 @@ camel_eas_utils_clear_folder (CamelEasFolder *eas_folder)
uids_deleted = g_list_prepend (uids_deleted, uid);
camel_data_cache_remove (eas_folder->cache, "cur", uid, NULL);
}
- camel_db_delete_uids (((CamelStore *)eas_store)->cdb_w, full_name, uids_deleted, NULL);
+ camel_db_delete_uids (camel_store_get_db (CAMEL_STORE (eas_store)), full_name, uids_deleted, NULL);
g_list_free (uids_deleted);
camel_folder_changed ((CamelFolder *) eas_folder, ci);
camel_folder_change_info_free (ci);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]