[evolution-mapi] Adapt to Camel API changes.



commit 442e252d7d4ace432f171b66764c8b9f4b24e01e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Apr 13 10:52:26 2010 -0400

    Adapt to Camel API changes.

 src/camel/camel-mapi-summary.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/camel-mapi-summary.c b/src/camel/camel-mapi-summary.c
index a4a2ab3..00b536c 100644
--- a/src/camel/camel-mapi-summary.c
+++ b/src/camel/camel-mapi-summary.c
@@ -98,6 +98,9 @@ camel_mapi_summary_class_init (CamelMapiSummaryClass *klass)
 
 	camel_mapi_summary_parent = CAMEL_FOLDER_SUMMARY_CLASS (camel_type_get_global_classfuncs (camel_folder_summary_get_type()));
 
+	cfs_class->message_info_size = sizeof(CamelMapiMessageInfo);
+	cfs_class->content_info_size = sizeof(CamelMapiMessageContentInfo);
+
 	cfs_class->message_info_clone = mapi_message_info_clone;
 
 	cfs_class->summary_header_to_db = mapi_summary_header_to_db;
@@ -113,10 +116,6 @@ camel_mapi_summary_init (CamelMapiSummary *obj)
 {
 	CamelFolderSummary *s = (CamelFolderSummary *)obj;
 
-	/* subclasses need to set the right instance data sizes */
-	s->message_info_size = sizeof(CamelMapiMessageInfo);
-	s->content_info_size = sizeof(CamelMapiMessageContentInfo);
-
 	/* Meta-summary - Overriding UID len */
 	s->meta_summary->uid_len = 2048;
 }



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