TnyGtkMsgView

TnyGtkMsgView — A message view type for Gtk+.

Synopsis




                    TnyGtkMsgView;
TnyMsgView*         tny_gtk_msg_view_new                (void);
void                tny_gtk_msg_view_set_display_html   (TnyGtkMsgView *self,
                                                         gboolean setting);
void                tny_gtk_msg_view_set_display_rfc822 (TnyGtkMsgView *self,
                                                         gboolean setting);
void                tny_gtk_msg_view_set_display_attachments
                                                        (TnyGtkMsgView *self,
                                                         gboolean setting);
void                tny_gtk_msg_view_set_display_plain  (TnyGtkMsgView *self,
                                                         gboolean setting);
gboolean            tny_gtk_msg_view_get_display_html   (TnyGtkMsgView *self);
gboolean            tny_gtk_msg_view_get_display_rfc822 (TnyGtkMsgView *self);
gboolean            tny_gtk_msg_view_get_display_attachments
                                                        (TnyGtkMsgView *self);
gboolean            tny_gtk_msg_view_get_display_plain  (TnyGtkMsgView *self);

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----TnyGtkMsgView
                                       +----TnyMozEmbedMsgView

Implemented Interfaces

TnyGtkMsgView implements AtkImplementorIface, TnyMimePartView and TnyMsgView.

Description

A TnyMsgView implementation that uses the GtkTextBuffer and GtkTextView for displaying the message.

It doesn't support viewing formatted HTML messages. It will, however, display the source code of such content.

This type is coupled with the TnyTextBufferStream.

Details

TnyGtkMsgView

typedef struct _TnyGtkMsgView TnyGtkMsgView;


tny_gtk_msg_view_new ()

TnyMsgView*         tny_gtk_msg_view_new                (void);

Create a new TnyMsgView instance implemented for Gtk+

Returns : a new TnyMsgView instance implemented for Gtk+

tny_gtk_msg_view_set_display_html ()

void                tny_gtk_msg_view_set_display_html   (TnyGtkMsgView *self,
                                                         gboolean setting);

With this setting will the default implementation of TnyGtkMsgView display the HTML source code of text/html mime parts. Default is FALSE.

Note that these settings only affect the instance in case an overridden implementation of tny_msg_view_create_mime_part_view_for doesn't handle creating a viewer for a mime part.

So for example in case a more advanced implementation that inherits this type implements viewing a text/html mime part, and will therefore not call this types original tny_msg_view_create_mime_part_view_for method for the mime part anymore, the setting isn't used.

self : A TnyGtkMsgView instance
setting : whether or not to display text/html mime parts

tny_gtk_msg_view_set_display_rfc822 ()

void                tny_gtk_msg_view_set_display_rfc822 (TnyGtkMsgView *self,
                                                         gboolean setting);

With this setting will the default implementation of TnyGtkMsgView display RFC822 inline message mime parts (forwards). Default is FALSE.

(Note that this support is unimplemented at this moment)

Note that these settings only affect the instance in case an overridden implementation of tny_msg_view_create_mime_part_view_for doesn't handle creating a viewer for a mime part.

So for example in case a more advanced implementation that inherits this type implements viewing a text/html mime part, and will therefore not call this types original tny_msg_view_create_mime_part_view_for method for the mime part anymore, the setting isn't used.

self : A TnyGtkMsgView instance
setting : whether or not to display message/rfc822 mime parts

tny_gtk_msg_view_set_display_attachments ()

void                tny_gtk_msg_view_set_display_attachments
                                                        (TnyGtkMsgView *self,
                                                         gboolean setting);

With this setting will the default implementation of TnyGtkMsgView display attachments using a GtkIconList and the TnyGtkAttachListModel at the bottom of the TnyGtkMsgView's scrollwindow. Default is TRUE.

Note that these settings only affect the instance in case an overridden implementation of tny_msg_view_create_mime_part_view_for doesn't handle creating a viewer for a mime part.

So for example in case a more advanced implementation that inherits this type implements viewing a text/html mime part, and will therefore not call this types original tny_msg_view_create_mime_part_view_for method for the mime part anymore, the setting isn't used.

self : A TnyGtkMsgView instance
setting : whether or not to display attachment mime parts

tny_gtk_msg_view_set_display_plain ()

void                tny_gtk_msg_view_set_display_plain  (TnyGtkMsgView *self,
                                                         gboolean setting);

With this setting will the default implementation of TnyGtkMsgView display text/plain mime parts. Default is TRUE.

Note that these settings only affect the instance in case an overridden implementation of tny_msg_view_create_mime_part_view_for doesn't handle creating a viewer for a mime part.

So for example in case a more advanced implementation that inherits this type implements viewing a text/html mime part, and will therefore not call this types original tny_msg_view_create_mime_part_view_for method for the mime part anymore, the setting isn't used.

self : A TnyGtkMsgView instance
setting : whether or not to display text/plain mime parts

tny_gtk_msg_view_get_display_html ()

gboolean            tny_gtk_msg_view_get_display_html   (TnyGtkMsgView *self);

Get whether or not to display text/html mime parts

self : A TnyGtkMsgView instance
Returns : whether or not to display text/html mime parts

tny_gtk_msg_view_get_display_rfc822 ()

gboolean            tny_gtk_msg_view_get_display_rfc822 (TnyGtkMsgView *self);

Get whether or not to display message/rfc822 mime parts

self : A TnyGtkMsgView instance
Returns : whether or not to display message/rfc822 mime parts

tny_gtk_msg_view_get_display_attachments ()

gboolean            tny_gtk_msg_view_get_display_attachments
                                                        (TnyGtkMsgView *self);

Get whether or not to display attachments

self : A TnyGtkMsgView instance
Returns : whether or not to display attachments

tny_gtk_msg_view_get_display_plain ()

gboolean            tny_gtk_msg_view_get_display_plain  (TnyGtkMsgView *self);

Get whether or not to display text/plain mime parts

self : A TnyGtkMsgView instance
Returns : whether or not to display text/plain mime parts

See Also

TnyMsg, TnyMsgView, TnyMimePart, TnyTextBufferStream, GtkTextBuffer, GtkTextView