From 0837301cd7723973138c4cf51db3a777b26ec1ea Mon Sep 17 00:00:00 2001 From: NotZed Date: Wed, 9 Feb 2000 12:32:53 +0000 Subject: [PATCH] Actually initialise the class. It simple couldn't have worked before. 2000-02-09 NotZed * 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?? --- camel/camel-simple-data-wrapper-stream.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/camel/camel-simple-data-wrapper-stream.c b/camel/camel-simple-data-wrapper-stream.c index 5103e13..7316997 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 * -- 2.7.4