]> www.fi.muni.cz Git - evince.git/commitdiff
Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with gnome-vfs
authorCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 15 Aug 2006 16:30:55 +0000 (16:30 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Tue, 15 Aug 2006 16:30:55 +0000 (16:30 +0000)
2006-08-14  Carlos Garcia Campos  <carlosgc@gnome.org>
* backend/ev-attachment.c: (ev_attachment_save):
Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with
gnome-vfs >= 2.9.3 and it's not really needed. Fixes bug #351493

ChangeLog
backend/ev-attachment.c

index 7b603936fbb47f67986270adaa1b22e923d16673..5c9836f46d998a3f638bbf560b829c2b71e8732d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,12 @@
+2006-08-14  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * backend/ev-attachment.c: (ev_attachment_save):
+
+       Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with
+       gnome-vfs >= 2.9.3 and it's not really needed. Fixes bug #351493
+
 2006-08-15  Julien Rebetez  <julienr@cvs.gnome.org>
+       
        * shell/ev-window.c: (ev_window_cmd_recent_file_activate):
        Fixed a compilation error if HAVE_GTK_RECENT isn't defined.
 
index 10982676644b615db56eb46d913e236670ed144d..63619afa61dc0f2772f2d645b72dae9a8a4c24f2 100644 (file)
@@ -293,8 +293,7 @@ ev_attachment_save (EvAttachment *attachment,
        g_return_val_if_fail (uri != NULL, FALSE);
 
        result = gnome_vfs_create (&handle, uri,
-                                  GNOME_VFS_OPEN_WRITE |
-                                  GNOME_VFS_OPEN_TRUNCATE,
+                                  GNOME_VFS_OPEN_WRITE,
                                   FALSE, 0644);
        if (result != GNOME_VFS_OK) {
                g_set_error (error,