* 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

@ -127,16 +127,17 @@ accumulate_parts (MuMsgAttachView *self, GtkTreePath *path, GSList **lst)
if (gtk_tree_model_get_iter (model, &iter, path)) {
gchar *filepath;
gint idx;
gtk_tree_model_get (model, &iter, PARTNUM_COL, &idx, -1);
gtk_tree_model_get (model, &iter, PARTNUM_COL, &idx, -1);
filepath = mu_msg_part_filepath_cache (self->_priv->_msg, idx);
if (filepath) {
if (mu_msg_part_save (self->_priv->_msg, filepath,
idx, FALSE, TRUE)) {
idx, FALSE, TRUE, NULL)) {
GFile *file;
file = g_file_new_for_path (filepath);
*lst = g_slist_prepend (*lst, g_file_get_uri(file));
g_object_unref (file);
}
} else
g_warning ("error saving msg part");
g_free (filepath);
}
}