aboutsummaryrefslogtreecommitdiffstats
path: root/mail/html-stream.c
diff options
context:
space:
mode:
authorArturo Espinosa <unammx@src.gnome.org>2000-01-25 18:58:55 +0800
committerArturo Espinosa <unammx@src.gnome.org>2000-01-25 18:58:55 +0800
commit5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee (patch)
tree6dbf4589a04b72470f379fccb3d27554b3608980 /mail/html-stream.c
parent22a335e6143796e48d634cb39bf4d5555ba75ff7 (diff)
downloadgsoc2013-evolution-5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee.tar
gsoc2013-evolution-5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee.tar.gz
gsoc2013-evolution-5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee.tar.bz2
gsoc2013-evolution-5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee.tar.lz
gsoc2013-evolution-5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee.tar.xz
gsoc2013-evolution-5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee.tar.zst
gsoc2013-evolution-5d268dc0057298b4b8bad4ec9aa3bb568f4a50ee.zip
It compiles -miguel
svn path=/trunk/; revision=1630
Diffstat (limited to 'mail/html-stream.c')
-rw-r--r--mail/html-stream.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/mail/html-stream.c b/mail/html-stream.c
index 250e98500a..927f8f3593 100644
--- a/mail/html-stream.c
+++ b/mail/html-stream.c
@@ -12,6 +12,8 @@
#define PARENT_TYPE camel_stream_get_type ()
+static GtkObjectClass *html_stream_parent_class;
+
/*
* CamelStream::read method
*
@@ -34,6 +36,8 @@ html_stream_write (CamelStream *stream, const gchar *buffer, gint n)
HTMLStream *html_stream = HTML_STREAM (stream);
gtk_html_write (html_stream->gtk_html, html_stream->gtk_html_stream, buffer, n);
+
+ return n;
}
/*
@@ -52,7 +56,7 @@ html_stream_available (CamelStream *stream)
*
* We just return TRUE, as this is not a read-stream
*/
-static
+static gboolean
html_stream_eos (CamelStream *stream)
{
return TRUE;
@@ -63,17 +67,22 @@ html_stream_close (CamelStream *stream)
{
HTMLStream *html_stream = HTML_STREAM (stream);
- gtk_html_end (html_stream->gtk_html);
+ gtk_html_end (html_stream->gtk_html, html_stream->gtk_html_stream, GTK_HTML_STREAM_OK);
+}
+
+static void
+html_stream_destroy (GtkObject *object)
+{
}
static void
html_stream_class_init (GtkObjectClass *object_class)
{
- HTMLStreamClass *stream_class = (HTMLStreamClass *) object_class;
+ CamelStreamClass *stream_class = (CamelStreamClass *) object_class;
html_stream_parent_class = gtk_type_class (PARENT_TYPE);
- object_class->destory = html_stream_destroy;
+ object_class->destroy = html_stream_destroy;
stream_class->read = html_stream_read;
stream_class->write = html_stream_write;