aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-data-wrapper.c
diff options
context:
space:
mode:
authorNotZed <NotZed@HelixCode.com>2000-05-26 05:40:58 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-05-26 05:40:58 +0800
commit1ead1f0174023636e3dc62f554f8c57749a8ec82 (patch)
tree72821cf8f129393d3598575b189e7a7dc42baa44 /camel/camel-data-wrapper.c
parent60f52f5eaedd302180188c671ab9298b23119930 (diff)
downloadgsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.tar.gz
gsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.tar.zst
gsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.zip
Removed camel-simple-data-wrapper again. Less code to maintain == better
2000-05-25 NotZed <NotZed@HelixCode.com> * 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
Diffstat (limited to 'camel/camel-data-wrapper.c')
-rw-r--r--camel/camel-data-wrapper.c7
1 files changed, 6 insertions, 1 deletions
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;
}
/**