From 9cea7543efb218a7a71097fa78e1841cab1e95af Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 16 Nov 2009 11:50:14 +0000 Subject: [libdocument] Use g_file_replace() when saving attachments It was broken since the temp files handling rework, because temp files are now created by ev_mkstemp_file(). --- (limited to 'libdocument/ev-attachment.c') diff --git a/libdocument/ev-attachment.c b/libdocument/ev-attachment.c index c4dd38d..b792b5f 100644 --- a/libdocument/ev-attachment.c +++ b/libdocument/ev-attachment.c @@ -293,7 +293,7 @@ ev_attachment_save (EvAttachment *attachment, g_return_val_if_fail (EV_IS_ATTACHMENT (attachment), FALSE); g_return_val_if_fail (G_IS_FILE (file), FALSE); - output_stream = g_file_create (file, 0, NULL, &ioerror); + output_stream = g_file_replace (file, NULL, FALSE, 0, NULL, &ioerror); if (output_stream == NULL) { char *uri; -- cgit v0.9.1