[evolution-mapi/wip/camel-more-gobject: 12/12] Adapt to changes for 'Remove confusing camel_folder_summary_insert()'



commit 830af00e34d0f48500427e624b2c6a3a345f573e
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 14 18:56:17 2016 +0200

    Adapt to changes for 'Remove confusing camel_folder_summary_insert()'

 src/camel/camel-mapi-folder.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index 61e6a09..9baea5e 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -547,8 +547,7 @@ gather_object_for_offline_cb (EMapiConnection *conn,
                                camel_message_info_set_size (info, camel_mapi_get_message_size (msg));
 
                        camel_message_info_set_abort_notifications (info, FALSE);
-                       camel_folder_summary_add (gos->folder->summary, info);
-                       g_object_ref (info);
+                       camel_folder_summary_add (gos->folder->summary, info, FALSE);
 
                        if (is_new) {
                                camel_folder_change_info_add_uid (gos->changes, uid_str);
@@ -743,11 +742,9 @@ gather_object_summary_cb (EMapiConnection *conn,
        camel_message_info_thaw_notifications (info);
 
        if (is_new) {
-               camel_folder_summary_add (gos->folder->summary, info);
+               camel_folder_summary_add (gos->folder->summary, info, FALSE);
                camel_folder_change_info_add_uid (gos->changes, camel_message_info_get_uid (info));
                camel_folder_change_info_recent_uid (gos->changes, camel_message_info_get_uid (info));
-
-               g_object_ref (info);
        } else {
                camel_folder_change_info_change_uid (gos->changes, camel_message_info_get_uid (info));
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]