From a8feedf3901a6db06e810f0dfd6ef370b23a2718 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 3 Apr 2010 16:55:23 -0400 Subject: Adapt to Camel API changes. --- modules/calendar/e-cal-attachment-handler.c | 2 +- modules/mail/e-mail-attachment-handler.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules') diff --git a/modules/calendar/e-cal-attachment-handler.c b/modules/calendar/e-cal-attachment-handler.c index acf975c0bf..c368f7347c 100644 --- a/modules/calendar/e-cal-attachment-handler.c +++ b/modules/calendar/e-cal-attachment-handler.c @@ -79,7 +79,7 @@ attachment_handler_get_component (EAttachment *attachment) buffer = g_byte_array_new (); stream = camel_stream_mem_new (); camel_stream_mem_set_byte_array (CAMEL_STREAM_MEM (stream), buffer); - wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (mime_part)); + wrapper = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); camel_data_wrapper_decode_to_stream (wrapper, stream); camel_object_unref (stream); diff --git a/modules/mail/e-mail-attachment-handler.c b/modules/mail/e-mail-attachment-handler.c index f27a107a59..ee49490f31 100644 --- a/modules/mail/e-mail-attachment-handler.c +++ b/modules/mail/e-mail-attachment-handler.c @@ -69,7 +69,7 @@ mail_attachment_handler_forward (GtkAction *action, attachment = E_ATTACHMENT (selected->data); mime_part = e_attachment_get_mime_part (attachment); - wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (mime_part)); + wrapper = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); em_utils_forward_message (CAMEL_MIME_MESSAGE (wrapper), NULL); @@ -91,7 +91,7 @@ mail_attachment_handler_reply_all (GtkAction *action, attachment = E_ATTACHMENT (selected->data); mime_part = e_attachment_get_mime_part (attachment); - wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (mime_part)); + wrapper = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); em_utils_reply_to_message ( NULL, NULL, CAMEL_MIME_MESSAGE (wrapper), @@ -115,7 +115,7 @@ mail_attachment_handler_reply_sender (GtkAction *action, attachment = E_ATTACHMENT (selected->data); mime_part = e_attachment_get_mime_part (attachment); - wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (mime_part)); + wrapper = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); em_utils_reply_to_message ( NULL, NULL, CAMEL_MIME_MESSAGE (wrapper), @@ -316,7 +316,7 @@ mail_attachment_handler_x_uid_list (EAttachmentView *view, mime_part = camel_mime_part_new (); wrapper = CAMEL_DATA_WRAPPER (message); camel_mime_part_set_disposition (mime_part, "inline"); - camel_medium_set_content_object ( + camel_medium_set_content ( CAMEL_MEDIUM (mime_part), wrapper); camel_mime_part_set_content_type (mime_part, "message/rfc822"); camel_multipart_add_part (multipart, mime_part); @@ -327,7 +327,7 @@ mail_attachment_handler_x_uid_list (EAttachmentView *view, mime_part = camel_mime_part_new (); wrapper = CAMEL_DATA_WRAPPER (multipart); - camel_medium_set_content_object (CAMEL_MEDIUM (mime_part), wrapper); + camel_medium_set_content (CAMEL_MEDIUM (mime_part), wrapper); /* Translators: This is only for multiple messages. */ description = g_strdup_printf (_("%d attached messages"), uids->len); @@ -399,7 +399,7 @@ mail_attachment_handler_update_actions (EAttachmentView *view) if (!CAMEL_IS_MIME_PART (mime_part)) goto exit; - wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (mime_part)); + wrapper = camel_medium_get_content (CAMEL_MEDIUM (mime_part)); visible = CAMEL_IS_MIME_MESSAGE (wrapper); -- cgit v1.2.3