diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-11-16 11:50:14 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-11-16 13:28:49 (GMT) |
commit | 9cea7543efb218a7a71097fa78e1841cab1e95af (patch) | |
tree | 074c53c7296497e15cb889758323498219e1733d /libdocument/ev-attachment.c | |
parent | b1dc0a93743ca6640752a63e2e0d5ed4eed14410 (diff) |
[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().
Diffstat (limited to 'libdocument/ev-attachment.c')
-rw-r--r-- | libdocument/ev-attachment.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |