* widget/mu-msg-*: update for mu_msg_save_mime_part API change

This commit is contained in:
Dirk-Jan C. Binnema
2011-05-21 16:05:08 +03:00
parent e103a23c1f
commit 4af35fe51f
3 changed files with 21 additions and 7 deletions

View File

@ -112,7 +112,15 @@ on_attach_activated (GtkWidget *w, guint partnum, MuMsg *msg)
filepath = mu_msg_part_filepath_cache (msg, partnum);
if (filepath) {
mu_msg_part_save (msg, filepath, partnum, FALSE, TRUE);
GError *err;
err = NULL;
if (!mu_msg_part_save (msg, filepath, partnum, FALSE, TRUE, &err)) {
g_warning ("failed to save %s: %s", filepath,
err&&err->message?err->message:"error");
if (err)
g_error_free(err);
}
mu_util_play (filepath, TRUE, FALSE);
g_free (filepath);
}