diff options
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r-- | mail/mail-display.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c index a950bace5d..005159f981 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -1353,6 +1353,23 @@ mail_display_set_message (MailDisplay *md, CamelMedium *medium) } /** + * mail_display_set_message: + * @mail_display: the mail display object + * @medium: the input camel medium, or %NULL + * + * Makes the mail_display object show the contents of the medium + * param. + **/ +void +mail_display_set_charset (MailDisplay *mail_display, const char *charset) +{ + g_free (mail_display->charset); + mail_display->charset = g_strdup (charset); + + mail_display_queue_redisplay (mail_display); +} + +/** * mail_display_load_images: * @md: the mail display object * @@ -1395,6 +1412,7 @@ mail_display_destroy (GtkObject *object) { MailDisplay *mail_display = MAIL_DISPLAY (object); + g_free (mail_display->charset); g_free (mail_display->selection); g_datalist_clear (mail_display->data); |