+++ /dev/null
-/* Copyright (c) 2006, Nokia Corporation
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the Nokia Corporation nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/* modest-tny-stream-gtkhtml.c */
-
-#include "modest-tny-stream-gtkhtml.h"
-#include <tny-stream.h>
-#include <gtkhtml/gtkhtml-stream.h>
-#include <gtkhtml/gtkhtml-search.h>
-
-/* 'private'/'protected' functions */
-static void modest_tny_stream_gtkhtml_class_init (ModestTnyStreamGtkhtmlClass *klass);
-static void modest_tny_stream_gtkhtml_init (ModestTnyStreamGtkhtml *obj);
-static void modest_tny_stream_gtkhtml_finalize (GObject *obj);
-
-static void modest_tny_stream_gtkhml_iface_init (gpointer g_iface, gpointer iface_data);
-
-/* list my signals */
-enum {
- /* MY_SIGNAL_1, */
- /* MY_SIGNAL_2, */
- LAST_SIGNAL
-};
-
-typedef struct _ModestTnyStreamGtkhtmlPrivate ModestTnyStreamGtkhtmlPrivate;
-struct _ModestTnyStreamGtkhtmlPrivate {
- GtkHTMLStream *stream;
-};
-#define MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \
- MODEST_TYPE_TNY_STREAM_GTKHTML, \
- ModestTnyStreamGtkhtmlPrivate))
-/* globals */
-static GObjectClass *parent_class = NULL;
-
-/* uncomment the following if you have defined any signals */
-/* static guint signals[LAST_SIGNAL] = {0}; */
-
-GType
-modest_tny_stream_gtkhtml_get_type (void)
-{
- static GType my_type = 0;
- if (!my_type) {
- static const GTypeInfo my_info = {
- sizeof(ModestTnyStreamGtkhtmlClass),
- NULL, /* base init */
- NULL, /* base finalize */
- (GClassInitFunc) modest_tny_stream_gtkhtml_class_init,
- NULL, /* class finalize */
- NULL, /* class data */
- sizeof(ModestTnyStreamGtkhtml),
- 1, /* n_preallocs */
- (GInstanceInitFunc) modest_tny_stream_gtkhtml_init,
- NULL
- };
-
- static const GInterfaceInfo iface_info = {
- (GInterfaceInitFunc) modest_tny_stream_gtkhml_iface_init,
- NULL, /* interface_finalize */
- NULL /* interface_data */
- };
-
- my_type = g_type_register_static (G_TYPE_OBJECT,
- "ModestTnyStreamGtkhtml",
- &my_info, 0);
-
- g_type_add_interface_static (my_type, TNY_TYPE_STREAM,
- &iface_info);
-
- }
- return my_type;
-}
-
-static void
-modest_tny_stream_gtkhtml_class_init (ModestTnyStreamGtkhtmlClass *klass)
-{
- GObjectClass *gobject_class;
- gobject_class = (GObjectClass*) klass;
-
- parent_class = g_type_class_peek_parent (klass);
- gobject_class->finalize = modest_tny_stream_gtkhtml_finalize;
-
- g_type_class_add_private (gobject_class, sizeof(ModestTnyStreamGtkhtmlPrivate));
-}
-
-static void
-modest_tny_stream_gtkhtml_init (ModestTnyStreamGtkhtml *obj)
-{
- ModestTnyStreamGtkhtmlPrivate *priv;
- priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(obj);
-
- priv->stream = NULL;
-}
-
-static void
-modest_tny_stream_gtkhtml_finalize (GObject *obj)
-{
- ModestTnyStreamGtkhtmlPrivate *priv;
-
- priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(obj);
- priv->stream = NULL;
-}
-
-GObject*
-modest_tny_stream_gtkhtml_new (GtkHTMLStream *stream)
-{
- GObject *obj;
- ModestTnyStreamGtkhtmlPrivate *priv;
-
- obj = G_OBJECT(g_object_new(MODEST_TYPE_TNY_STREAM_GTKHTML, NULL));
- priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(obj);
-
- g_return_val_if_fail (stream, NULL);
-
- priv->stream = stream;
-
- return obj;
-}
-
-
-/* the rest are interface functions */
-
-
-static ssize_t
-gtkhtml_read (TnyStream *self, char *buffer, size_t n)
-{
- return -1; /* we cannot read */
-}
-
-
-static ssize_t
-gtkhtml_write (TnyStream *self, const char *buffer, size_t n)
-{
- ModestTnyStreamGtkhtmlPrivate *priv;
-
- priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(self);
-
- if (!priv->stream) {
- g_print ("modest: cannot write to closed stream\n");
- return 0;
- }
-
- if (n == 0 || !buffer)
- return 0;
-
- gtk_html_stream_write (priv->stream, buffer, n);
- return n; /* hmmm */
-}
-
-
-static gint
-gtkhtml_flush (TnyStream *self)
-{
- return 0;
-}
-
-
-static gint
-gtkhtml_close (TnyStream *self)
-{
- ModestTnyStreamGtkhtmlPrivate *priv;
- g_return_val_if_fail (self, 0);
- priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(self);
-
- gtk_html_stream_close (priv->stream, GTK_HTML_STREAM_OK);
- priv->stream = NULL;
-
- return 0;
-}
-
-
-static gboolean
-gtkhtml_is_eos (TnyStream *self)
-{
- return TRUE;
-}
-
-
-
-static gint
-gtkhtml_reset (TnyStream *self)
-{
- return 0;
-}
-
-
-static ssize_t
-gtkhtml_write_to_stream (TnyStream *self, TnyStream *output)
-{
- return 0;
-}
-
-
-static void
-modest_tny_stream_gtkhml_iface_init (gpointer g_iface, gpointer iface_data)
-{
- TnyStreamIface *klass;
-
- g_return_if_fail (g_iface);
-
- klass = (TnyStreamIface*) g_iface;
-
- klass->read_func = gtkhtml_read;
- klass->write_func = gtkhtml_write;
- klass->flush_func = gtkhtml_flush;
- klass->close_func = gtkhtml_close;
- klass->is_eos_func = gtkhtml_is_eos;
- klass->reset_func = gtkhtml_reset;
- klass->write_to_stream_func = gtkhtml_write_to_stream;
-}
+++ /dev/null
-/* Copyright (c) 2006, Nokia Corporation
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the Nokia Corporation nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
- * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-
-/* modest-tny-stream-gtkhtml.h */
-
-#ifndef __MODEST_TNY_STREAM_GTKHTML_H__
-#define __MODEST_TNY_STREAM_GTKHTML_H__
-
-#include <glib-object.h>
-#include <gtkhtml/gtkhtml.h>
-#include <tny-stream.h>
-
-G_BEGIN_DECLS
-
-/* convenience macros */
-#define MODEST_TYPE_TNY_STREAM_GTKHTML (modest_tny_stream_gtkhtml_get_type())
-#define MODEST_TNY_STREAM_GTKHTML(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_TNY_STREAM_GTKHTML,ModestTnyStreamGtkhtml))
-#define MODEST_TNY_STREAM_GTKHTML_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_TNY_STREAM_GTKHTML,ModestTnyStreamGtkhtmlClass))
-#define MODEST_IS_TNY_STREAM_GTKHTML(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_TNY_STREAM_GTKHTML))
-#define MODEST_IS_TNY_STREAM_GTKHTML_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_TNY_STREAM_GTKHTML))
-#define MODEST_TNY_STREAM_GTKHTML_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_TNY_STREAM_GTKHTML,ModestTnyStreamGtkhtmlClass))
-
-typedef struct _ModestTnyStreamGtkhtml ModestTnyStreamGtkhtml;
-typedef struct _ModestTnyStreamGtkhtmlClass ModestTnyStreamGtkhtmlClass;
-
-struct _ModestTnyStreamGtkhtml {
- GObject parent;
-};
-
-struct _ModestTnyStreamGtkhtmlClass {
- GObjectClass parent_class;
-};
-
-GType modest_tny_stream_gtkhtml_get_type (void) G_GNUC_CONST;
-
-GObject* modest_tny_stream_gtkhtml_new (GtkHTMLStream* stream);
-
-
-G_END_DECLS
-
-#endif /* __MODEST_TNY_STREAM_GTKHTML_H__ */
-
--- /dev/null
+/* Copyright (c) 2006, Nokia Corporation
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of the Nokia Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+ * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+/* modest-tny-stream-gtkhtml.c */
+
+#include "modest-tny-stream-gtkhtml.h"
+#include <tny-stream.h>
+#include <gtkhtml/gtkhtml-stream.h>
+#include <gtkhtml/gtkhtml-search.h>
+
+/* 'private'/'protected' functions */
+static void modest_tny_stream_gtkhtml_class_init (ModestTnyStreamGtkhtmlClass *klass);
+static void modest_tny_stream_gtkhtml_init (ModestTnyStreamGtkhtml *obj);
+static void modest_tny_stream_gtkhtml_finalize (GObject *obj);
+
+static void modest_tny_stream_gtkhml_iface_init (gpointer g_iface, gpointer iface_data);
+
+/* list my signals */
+enum {
+ /* MY_SIGNAL_1, */
+ /* MY_SIGNAL_2, */
+ LAST_SIGNAL
+};
+
+typedef struct _ModestTnyStreamGtkhtmlPrivate ModestTnyStreamGtkhtmlPrivate;
+struct _ModestTnyStreamGtkhtmlPrivate {
+ GtkHTMLStream *stream;
+};
+#define MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), \
+ MODEST_TYPE_TNY_STREAM_GTKHTML, \
+ ModestTnyStreamGtkhtmlPrivate))
+/* globals */
+static GObjectClass *parent_class = NULL;
+
+/* uncomment the following if you have defined any signals */
+/* static guint signals[LAST_SIGNAL] = {0}; */
+
+GType
+modest_tny_stream_gtkhtml_get_type (void)
+{
+ static GType my_type = 0;
+ if (!my_type) {
+ static const GTypeInfo my_info = {
+ sizeof(ModestTnyStreamGtkhtmlClass),
+ NULL, /* base init */
+ NULL, /* base finalize */
+ (GClassInitFunc) modest_tny_stream_gtkhtml_class_init,
+ NULL, /* class finalize */
+ NULL, /* class data */
+ sizeof(ModestTnyStreamGtkhtml),
+ 1, /* n_preallocs */
+ (GInstanceInitFunc) modest_tny_stream_gtkhtml_init,
+ NULL
+ };
+
+ static const GInterfaceInfo iface_info = {
+ (GInterfaceInitFunc) modest_tny_stream_gtkhml_iface_init,
+ NULL, /* interface_finalize */
+ NULL /* interface_data */
+ };
+
+ my_type = g_type_register_static (G_TYPE_OBJECT,
+ "ModestTnyStreamGtkhtml",
+ &my_info, 0);
+
+ g_type_add_interface_static (my_type, TNY_TYPE_STREAM,
+ &iface_info);
+
+ }
+ return my_type;
+}
+
+static void
+modest_tny_stream_gtkhtml_class_init (ModestTnyStreamGtkhtmlClass *klass)
+{
+ GObjectClass *gobject_class;
+ gobject_class = (GObjectClass*) klass;
+
+ parent_class = g_type_class_peek_parent (klass);
+ gobject_class->finalize = modest_tny_stream_gtkhtml_finalize;
+
+ g_type_class_add_private (gobject_class, sizeof(ModestTnyStreamGtkhtmlPrivate));
+}
+
+static void
+modest_tny_stream_gtkhtml_init (ModestTnyStreamGtkhtml *obj)
+{
+ ModestTnyStreamGtkhtmlPrivate *priv;
+ priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(obj);
+
+ priv->stream = NULL;
+}
+
+static void
+modest_tny_stream_gtkhtml_finalize (GObject *obj)
+{
+ ModestTnyStreamGtkhtmlPrivate *priv;
+
+ priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(obj);
+ priv->stream = NULL;
+}
+
+GObject*
+modest_tny_stream_gtkhtml_new (GtkHTMLStream *stream)
+{
+ GObject *obj;
+ ModestTnyStreamGtkhtmlPrivate *priv;
+
+ obj = G_OBJECT(g_object_new(MODEST_TYPE_TNY_STREAM_GTKHTML, NULL));
+ priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(obj);
+
+ g_return_val_if_fail (stream, NULL);
+
+ priv->stream = stream;
+
+ return obj;
+}
+
+
+/* the rest are interface functions */
+
+
+static ssize_t
+gtkhtml_read (TnyStream *self, char *buffer, size_t n)
+{
+ return -1; /* we cannot read */
+}
+
+
+static ssize_t
+gtkhtml_write (TnyStream *self, const char *buffer, size_t n)
+{
+ ModestTnyStreamGtkhtmlPrivate *priv;
+
+ priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(self);
+
+ if (!priv->stream) {
+ g_print ("modest: cannot write to closed stream\n");
+ return 0;
+ }
+
+ if (n == 0 || !buffer)
+ return 0;
+
+ gtk_html_stream_write (priv->stream, buffer, n);
+ return n; /* hmmm */
+}
+
+
+static gint
+gtkhtml_flush (TnyStream *self)
+{
+ return 0;
+}
+
+
+static gint
+gtkhtml_close (TnyStream *self)
+{
+ ModestTnyStreamGtkhtmlPrivate *priv;
+ g_return_val_if_fail (self, 0);
+ priv = MODEST_TNY_STREAM_GTKHTML_GET_PRIVATE(self);
+
+ gtk_html_stream_close (priv->stream, GTK_HTML_STREAM_OK);
+ priv->stream = NULL;
+
+ return 0;
+}
+
+
+static gboolean
+gtkhtml_is_eos (TnyStream *self)
+{
+ return TRUE;
+}
+
+
+
+static gint
+gtkhtml_reset (TnyStream *self)
+{
+ return 0;
+}
+
+
+static ssize_t
+gtkhtml_write_to_stream (TnyStream *self, TnyStream *output)
+{
+ return 0;
+}
+
+
+static void
+modest_tny_stream_gtkhml_iface_init (gpointer g_iface, gpointer iface_data)
+{
+ TnyStreamIface *klass;
+
+ g_return_if_fail (g_iface);
+
+ klass = (TnyStreamIface*) g_iface;
+
+ klass->read_func = gtkhtml_read;
+ klass->write_func = gtkhtml_write;
+ klass->flush_func = gtkhtml_flush;
+ klass->close_func = gtkhtml_close;
+ klass->is_eos_func = gtkhtml_is_eos;
+ klass->reset_func = gtkhtml_reset;
+ klass->write_to_stream_func = gtkhtml_write_to_stream;
+}
--- /dev/null
+/* Copyright (c) 2006, Nokia Corporation
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of the Nokia Corporation nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+ * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+
+/* modest-tny-stream-gtkhtml.h */
+
+#ifndef __MODEST_TNY_STREAM_GTKHTML_H__
+#define __MODEST_TNY_STREAM_GTKHTML_H__
+
+#include <glib-object.h>
+#include <gtkhtml/gtkhtml.h>
+#include <tny-stream.h>
+
+G_BEGIN_DECLS
+
+/* convenience macros */
+#define MODEST_TYPE_TNY_STREAM_GTKHTML (modest_tny_stream_gtkhtml_get_type())
+#define MODEST_TNY_STREAM_GTKHTML(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_TNY_STREAM_GTKHTML,ModestTnyStreamGtkhtml))
+#define MODEST_TNY_STREAM_GTKHTML_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_TNY_STREAM_GTKHTML,ModestTnyStreamGtkhtmlClass))
+#define MODEST_IS_TNY_STREAM_GTKHTML(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_TNY_STREAM_GTKHTML))
+#define MODEST_IS_TNY_STREAM_GTKHTML_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_TNY_STREAM_GTKHTML))
+#define MODEST_TNY_STREAM_GTKHTML_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_TNY_STREAM_GTKHTML,ModestTnyStreamGtkhtmlClass))
+
+typedef struct _ModestTnyStreamGtkhtml ModestTnyStreamGtkhtml;
+typedef struct _ModestTnyStreamGtkhtmlClass ModestTnyStreamGtkhtmlClass;
+
+struct _ModestTnyStreamGtkhtml {
+ GObject parent;
+};
+
+struct _ModestTnyStreamGtkhtmlClass {
+ GObjectClass parent_class;
+};
+
+GType modest_tny_stream_gtkhtml_get_type (void) G_GNUC_CONST;
+
+GObject* modest_tny_stream_gtkhtml_new (GtkHTMLStream* stream);
+
+
+G_END_DECLS
+
+#endif /* __MODEST_TNY_STREAM_GTKHTML_H__ */
+