[evolution-mapi/wip/camel-more-gobject] Seal CamelStream (and its descendants) properties
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi/wip/camel-more-gobject] Seal CamelStream (and its descendants) properties
- Date: Thu, 3 Nov 2016 14:29:14 +0000 (UTC)
commit 0c1c12ccaf162e0ee999f9f65d33461608cf366b
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 3 15:29:33 2016 +0100
Seal CamelStream (and its descendants) properties
src/camel/camel-mapi-folder.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/camel/camel-mapi-folder.c b/src/camel/camel-mapi-folder.c
index e8f0e30..ea30c70 100644
--- a/src/camel/camel-mapi-folder.c
+++ b/src/camel/camel-mapi-folder.c
@@ -439,21 +439,11 @@ update_message_info (CamelMessageInfo *info,
static gsize
camel_mapi_get_message_size (CamelMimeMessage *msg)
{
- CamelStream *null;
- CamelDataWrapper *dw;
- gsize sz;
-
if (!CAMEL_IS_DATA_WRAPPER (msg))
return 0;
- dw = CAMEL_DATA_WRAPPER (msg);
- null = camel_stream_null_new ();
/* do not 'decode', let's be interested in the raw message size */
- camel_data_wrapper_write_to_stream_sync (dw, null, NULL, NULL);
- sz = CAMEL_STREAM_NULL (null)->written;
- g_object_unref (null);
-
- return sz;
+ return camel_data_wrapper_calculate_size_sync (CAMEL_DATA_WRAPPER (msg), NULL, NULL);
}
struct GatherObjectSummaryData
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]