![]() |
![]() |
![]() |
Reference Manual of the tinymail framework | ![]() |
---|---|---|---|---|
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);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----TnyGtkMsgView +----TnyMozEmbedMsgView
TnyGtkMsgView implements AtkImplementorIface, TnyMimePartView and TnyMsgView.
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.
TnyMsgView* tny_gtk_msg_view_new (void);
Create a new TnyMsgView instance implemented for Gtk+
Returns : | a new TnyMsgView instance implemented for Gtk+ |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |