[evolution-ews/wip/camel-more-gobject] Adapt to changes for 'Remove confusing camel_folder_summary_insert()'
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/wip/camel-more-gobject] Adapt to changes for 'Remove confusing camel_folder_summary_insert()'
- Date: Wed, 14 Sep 2016 16:55:36 +0000 (UTC)
commit 7d6ec8d6f7978984b803c8d166424b1c5ea888c6
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 14 18:55:28 2016 +0200
Adapt to changes for 'Remove confusing camel_folder_summary_insert()'
src/camel/camel-ews-summary.c | 4 +++-
src/camel/camel-ews-utils.c | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/camel-ews-summary.c b/src/camel/camel-ews-summary.c
index f8f3774..d8a2ee8 100644
--- a/src/camel/camel-ews-summary.c
+++ b/src/camel/camel-ews-summary.c
@@ -186,10 +186,12 @@ camel_ews_summary_add_message (CamelFolderSummary *summary,
camel_message_info_set_abort_notifications (mi, FALSE);
- camel_folder_summary_add (summary, mi);
+ camel_folder_summary_add (summary, mi, FALSE);
camel_folder_summary_touch (summary);
camel_folder_summary_save_to_db (summary, NULL);
+ g_object_unref (mi);
+
return TRUE;
}
diff --git a/src/camel/camel-ews-utils.c b/src/camel/camel-ews-utils.c
index e9ecba5..20bf2bb 100644
--- a/src/camel/camel-ews-utils.c
+++ b/src/camel/camel-ews-utils.c
@@ -930,7 +930,7 @@ camel_ews_utils_sync_created_items (CamelEwsFolder *ews_folder,
camel_message_info_set_abort_notifications (mi, FALSE);
- camel_folder_summary_add (folder->summary, mi);
+ camel_folder_summary_add (folder->summary, mi, FALSE);
/* camel_folder_summary_add() sets folder_flagged flag
* on the message info, but this is a fresh item downloaded
@@ -942,6 +942,7 @@ camel_ews_utils_sync_created_items (CamelEwsFolder *ews_folder,
camel_folder_change_info_add_uid (change_info, id->id);
camel_folder_change_info_recent_uid (change_info, id->id);
+ g_object_unref (mi);
g_object_unref (item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]