aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--camel/camel-simple-data-wrapper-stream.c17
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f540ef5e10..7e2951d7f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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??
+
2000-02-09 Christopher James Lahey <clahey@helixcode.com>
* configure.in: Add new Makefiles to Makefile list.
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 *