From 1ead1f0174023636e3dc62f554f8c57749a8ec82 Mon Sep 17 00:00:00 2001 From: NotZed Date: Thu, 25 May 2000 21:40:58 +0000 Subject: Removed camel-simple-data-wrapper again. Less code to maintain == better 2000-05-25 NotZed * Makefile.am (libcamel_la_SOURCES): Removed camel-simple-data-wrapper again. Less code to maintain == better code. * camel-data-wrapper.c (construct_from_stream): Fixes for bug where text attachments dont work. Made data-wrapper concrete for the second time. svn path=/trunk/; revision=3207 --- camel/camel-data-wrapper.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'camel/camel-data-wrapper.c') diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c index fe9f8bf78b..86be8117bf 100644 --- a/camel/camel-data-wrapper.c +++ b/camel/camel-data-wrapper.c @@ -156,7 +156,12 @@ camel_data_wrapper_write_to_stream (CamelDataWrapper *data_wrapper, static int construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) { - return -1; + if (data_wrapper->stream) + gtk_object_unref((GtkObject *)data_wrapper->stream); + + data_wrapper->stream = stream; + gtk_object_ref (GTK_OBJECT (stream)); + return 0; } /** -- cgit