diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-21 11:13:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-28 23:35:55 +0800 |
commit | 31b57ed0383b2ea225195d4b72a872f7f2d93163 (patch) | |
tree | 2d70adcce04ed1ed5111c06cd7ad93266419b0e0 /modules/mail | |
parent | a91eeb647138ee035444cdc3c265fa4e95898f29 (diff) | |
download | gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar.gz gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar.bz2 gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar.lz gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar.xz gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.tar.zst gsoc2013-evolution-31b57ed0383b2ea225195d4b72a872f7f2d93163.zip |
Adapt to Camel API changes.
Diffstat (limited to 'modules/mail')
-rw-r--r-- | modules/mail/e-mail-attachment-handler.c | 9 | ||||
-rw-r--r-- | modules/mail/e-mail-shell-view.c | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/modules/mail/e-mail-attachment-handler.c b/modules/mail/e-mail-attachment-handler.c index 99d16e9a34..55ffc808fd 100644 --- a/modules/mail/e-mail-attachment-handler.c +++ b/modules/mail/e-mail-attachment-handler.c @@ -193,13 +193,14 @@ mail_attachment_handler_message_rfc822 (EAttachmentView *view, length = gtk_selection_data_get_length (selection_data); stream = camel_stream_mem_new (); - camel_stream_write (stream, data, length, NULL); + camel_stream_write (stream, data, length, NULL, NULL); camel_stream_reset (stream, NULL); message = camel_mime_message_new (); wrapper = CAMEL_DATA_WRAPPER (message); - if (camel_data_wrapper_construct_from_stream (wrapper, stream, NULL) == -1) + if (!camel_data_wrapper_construct_from_stream_sync ( + wrapper, stream, NULL, NULL)) goto exit; store = e_attachment_view_get_store (view); @@ -296,7 +297,7 @@ mail_attachment_handler_x_uid_list (EAttachmentView *view, /* Handle one message. */ if (uids->len == 1) { /* FIXME Not passing a GCancellable here. */ - message = camel_folder_get_message ( + message = camel_folder_get_message_sync ( folder, uids->pdata[0], NULL, &local_error); if (message == NULL) goto exit; @@ -321,7 +322,7 @@ mail_attachment_handler_x_uid_list (EAttachmentView *view, for (ii = 0; ii < uids->len; ii++) { /* FIXME Not passing a GCancellable here. */ - message = camel_folder_get_message ( + message = camel_folder_get_message_sync ( folder, uids->pdata[ii], NULL, &local_error); if (message == NULL) { g_object_unref (multipart); diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c index f6603446ea..b95153ed42 100644 --- a/modules/mail/e-mail-shell-view.c +++ b/modules/mail/e-mail-shell-view.c @@ -59,8 +59,6 @@ search_results_exec (SearchResultsMsg *msg) { GList *copied_list; - camel_operation_register (msg->cancel); - copied_list = g_list_copy (msg->folder_list); g_list_foreach (copied_list, (GFunc) g_object_ref, NULL); |