* <many> WIP: refactor mu-msg -- mu-msg-file
This commit is contained in:
@ -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'");
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user