diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-04-13 03:55:53 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-04-13 03:55:53 +0800 |
commit | 51e5ae5524c778309800530e1e25fdf74f2226da (patch) | |
tree | cb4b49e313d0ac80d9b47c3f2ffe6e097fe08442 /plugins/groupwise-features | |
parent | 742b2d946553f3317a7cecc21f735441c37e4478 (diff) | |
download | gsoc2013-evolution-51e5ae5524c778309800530e1e25fdf74f2226da.tar.gz gsoc2013-evolution-51e5ae5524c778309800530e1e25fdf74f2226da.tar.zst gsoc2013-evolution-51e5ae5524c778309800530e1e25fdf74f2226da.zip |
Adapt to Camel API changes.
Diffstat (limited to 'plugins/groupwise-features')
-rw-r--r-- | plugins/groupwise-features/install-shared.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/groupwise-features/install-shared.c b/plugins/groupwise-features/install-shared.c index b82027a946..c3be10312c 100644 --- a/plugins/groupwise-features/install-shared.c +++ b/plugins/groupwise-features/install-shared.c @@ -186,8 +186,9 @@ org_gnome_popup_wizard (EPlugin *ep, EMEventTargetMessage *target) const gchar *name; const gchar *email; CamelMimeMessage *msg = (CamelMimeMessage *) target->message; - CamelStreamMem *content; + CamelStream *stream; CamelDataWrapper *dw; + GByteArray *byte_array; gchar *start_message; if (!msg) @@ -205,9 +206,10 @@ org_gnome_popup_wizard (EPlugin *ep, EMEventTargetMessage *target) return; } - content = (CamelStreamMem *)camel_stream_mem_new(); - camel_data_wrapper_write_to_stream(dw, (CamelStream *)content); - camel_stream_write((CamelStream *)content, "", 1); + byte_array = g_byte_array_new (); + stream = camel_stream_mem_new_with_byte_array (byte_array); + camel_data_wrapper_write_to_stream (dw, stream); + camel_stream_write (stream, "", 1); from_addr = camel_mime_message_get_from ((CamelMimeMessage *)target->message); if (from_addr && camel_internet_address_get(from_addr, 0, &name, &email)) { @@ -218,7 +220,7 @@ org_gnome_popup_wizard (EPlugin *ep, EMEventTargetMessage *target) "Message from '%s'\n\n\n" "%s\n\n\n" "Click 'Apply' to install the shared folder\n\n"), - name, name, content->buffer->data); + name, name, byte_array->data); page = gtk_label_new (start_message); gtk_label_set_line_wrap (GTK_LABEL (page), TRUE); @@ -244,7 +246,7 @@ org_gnome_popup_wizard (EPlugin *ep, EMEventTargetMessage *target) } else g_warning ("Could not get the sender name"); - camel_object_unref(content); + camel_object_unref (stream); } } |