* <many> WIP: refactor mu-msg -- mu-msg-file

This commit is contained in:
Dirk-Jan C. Binnema
2011-05-09 02:58:33 +03:00
parent 3223892e24
commit 53b87a79eb
24 changed files with 1138 additions and 914 deletions

View File

@ -292,7 +292,7 @@ mug_msg_view_set_msg (MugMsgView * self, const char *msgpath)
return TRUE;
}
msg = mu_msg_new (msgpath, NULL, NULL);
msg = mu_msg_new_from_file (msgpath, NULL, NULL);
if (!msg) {
empty_message (self);
set_text (self, "Message not found; " "please run 'mu index'");

View File

@ -121,7 +121,7 @@ mug_msg_view_set_msg (MugMsgView * self, const char *msgpath)
MuMsg *msg;
if (access (msgpath, R_OK) == 0) {
msg = mu_msg_new (msgpath, NULL, NULL);
msg = mu_msg_new_from_file (msgpath, NULL, NULL);
mu_msg_view_set_message (MU_MSG_VIEW(priv->_view), msg);
if (msg)
mu_msg_unref (msg);