TnyGtkPixbufStream

TnyGtkPixbufStream

Synopsis




                    TnyGtkPixbufStream;
TnyStream*          tny_gtk_pixbuf_stream_new           (const gchar *mime_type);
GdkPixbuf*          tny_gtk_pixbuf_stream_get_pixbuf    (TnyGtkPixbufStream *self);

Object Hierarchy


  GObject
   +----TnyGtkPixbufStream

Implemented Interfaces

TnyGtkPixbufStream implements TnyStream.

Description

Details

TnyGtkPixbufStream

typedef struct _TnyGtkPixbufStream TnyGtkPixbufStream;

A TnyStream for building a GdkPixbuf from a stream in Tinymail, like when streaming a TnyMimePart that is an image to a GdkPixbuf that will be used by a GtkImage.

free-function: g_object_unref


tny_gtk_pixbuf_stream_new ()

TnyStream*          tny_gtk_pixbuf_stream_new           (const gchar *mime_type);

Create an adaptor instance between TnyStream and GdkPixbuf

mime_type : the MIME type, for example image/jpeg
Returns : (caller-owns): a new TnyStream instance

Since 1.0 audience: application-developer


tny_gtk_pixbuf_stream_get_pixbuf ()

GdkPixbuf*          tny_gtk_pixbuf_stream_get_pixbuf    (TnyGtkPixbufStream *self);

Get the GfkPixbuf that got created when we streamed data to self.

self : a TnyGtkPixbufStream
Returns : (caller-owns): a GdkPixbuf instance

Since 1.0 audience: application-developer