diff options
author | NotZed <NotZed@HelixCode.com> | 2000-05-26 05:40:58 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-26 05:40:58 +0800 |
commit | 1ead1f0174023636e3dc62f554f8c57749a8ec82 (patch) | |
tree | 72821cf8f129393d3598575b189e7a7dc42baa44 /camel/camel-data-wrapper.c | |
parent | 60f52f5eaedd302180188c671ab9298b23119930 (diff) | |
download | gsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.tar gsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.tar.gz gsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.tar.bz2 gsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.tar.lz gsoc2013-evolution-1ead1f0174023636e3dc62f554f8c57749a8ec82.tar.xz 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.c | 7 |
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; } /** |