* updates for mu_msg_get_body_(text|html) api change

This commit is contained in:
djcb
2012-08-09 09:38:58 +03:00
parent 86bf7b7165
commit abfcc4a2f3
9 changed files with 29 additions and 23 deletions

View File

@ -200,11 +200,11 @@ convert_to_pdf (MuMsg *msg, GError **err)
gstr = g_string_append (gstr, "<hr>\n");
body = mu_msg_get_body_html (msg);
body = mu_msg_get_body_html (msg, MU_MSG_OPTION_NONE);
if (body)
g_string_append_printf (gstr, "%s", body);
else {
body = mu_msg_get_body_text (msg);
body = mu_msg_get_body_text (msg, MU_MSG_OPTION_NONE);
if (body) {
gchar *esc;
esc = g_markup_escape_text (body, -1);

View File

@ -352,11 +352,12 @@ mu_msg_body_view_set_message (MuMsgBodyView *self, MuMsg *msg)
set_message (self, msg);
data = msg ? mu_msg_get_body_html (msg) : "";
data = msg ? mu_msg_get_body_html (msg, MU_MSG_OPTION_NONE) : "";
if (data)
set_html (self, data);
else
set_text (self, mu_msg_get_body_text (msg));
set_text (self,
mu_msg_get_body_text (msg, MU_MSG_OPTION_NONE));
self->_priv->_view_mode = VIEW_MODE_MSG;
}

View File

@ -1,5 +1,5 @@
/*
** Copyright (C) 2010-2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
** Copyright (C) 2010-2012 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the