aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNotZed <notzed@zedzone.helixcode.com>2000-02-09 20:32:53 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-02-09 20:32:53 +0800
commitd4bc84cf831dcfb4be2591d9a99184637c04c847 (patch)
tree51c5835654ebe309eb0e7535040245e1fe5958b7 /camel
parent824d0a361f368aba0fce7f361ff86dda36d6e51f (diff)
downloadgsoc2013-evolution-d4bc84cf831dcfb4be2591d9a99184637c04c847.tar.gz
gsoc2013-evolution-d4bc84cf831dcfb4be2591d9a99184637c04c847.tar.zst
gsoc2013-evolution-d4bc84cf831dcfb4be2591d9a99184637c04c847.zip
Actually initialise the class. It simple couldn't have worked before.
2000-02-09 NotZed <notzed@zedzone.helixcode.com> * camel/camel-simple-data-wrapper-stream.c (class_init): Actually initialise the class. It simple couldn't have worked before. (camel_simple_data_wrapper_stream_construct): Commented out code which crashes just to get something working, memory corruption?? svn path=/trunk/; revision=1707
Diffstat (limited to 'camel')
-rw-r--r--camel/camel-simple-data-wrapper-stream.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/camel/camel-simple-data-wrapper-stream.c b/camel/camel-simple-data-wrapper-stream.c
index 5103e1383c..7316997c03 100644
--- a/camel/camel-simple-data-wrapper-stream.c
+++ b/camel/camel-simple-data-wrapper-stream.c
@@ -208,8 +208,23 @@ static void
class_init (CamelSimpleDataWrapperStreamClass *klass)
{
GtkObjectClass *object_class;
+ CamelStreamClass *stream_class;
+ CamelSeekableStreamClass *seek_class;
object_class = (GtkObjectClass*) klass;
+ stream_class = (CamelStreamClass *)klass;
+ seek_class = (CamelSeekableStreamClass *)klass;
+
+ stream_class->read = read;
+ stream_class->write = write;
+ stream_class->flush = flush;
+ stream_class->available = available;
+ stream_class->eos = eos;
+ stream_class->close = close;
+
+ seek_class->seek = seek;
+
+ object_class->destroy = destroy;
parent_class = gtk_type_class (camel_stream_get_type ());
}
@@ -255,8 +270,10 @@ camel_simple_data_wrapper_stream_construct (CamelSimpleDataWrapperStream *stream
gtk_object_ref (GTK_OBJECT (wrapper));
stream->wrapper = wrapper;
+#if 0
gtk_signal_connect (GTK_OBJECT (wrapper), "destroy",
wrapper_destroy_cb, stream);
+#endif
}
CamelStream *