[gthumb] importer: use the destination permissions for the imported files



commit 20b68d321862a6b8aa46d1237120a43785b54df0
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Jul 13 10:07:57 2011 +0200

    importer: use the destination permissions for the imported files

 extensions/importer/gth-import-task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/importer/gth-import-task.c b/extensions/importer/gth-import-task.c
index 174fd61..046e8bf 100644
--- a/extensions/importer/gth-import-task.c
+++ b/extensions/importer/gth-import-task.c
@@ -493,7 +493,7 @@ write_file_to_destination (GthImportTask *self,
 	else
 		g_file_copy_async (file_data->file,
 				   self->priv->destination_file->file,
-				   (replace ? G_FILE_COPY_OVERWRITE : G_FILE_COPY_NONE),
+				   (replace ? G_FILE_COPY_OVERWRITE : G_FILE_COPY_NONE) | G_FILE_COPY_TARGET_DEFAULT_PERMS,
 				   G_PRIORITY_DEFAULT,
 				   gth_task_get_cancellable (GTH_TASK (self)),
 				   copy_non_image_progress_cb,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]