[gimp] app: use G_FILE_CREATE_NONE for saved internal data files
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use G_FILE_CREATE_NONE for saved internal data files
- Date: Mon, 30 Oct 2017 11:41:45 +0000 (UTC)
commit 9eb75cde000edfc7adc2faac08800af7340ff799
Author: Ell <ell_se yahoo com>
Date: Mon Oct 30 07:38:10 2017 -0400
app: use G_FILE_CREATE_NONE for saved internal data files
Use G_FILE_CREATE_NONE, instead of G_FILE_CREATE_REPLACE_DESTINATION,
when saving internal data files, for consistency with the other files
we save.
app/core/gimp-internal-data.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimp-internal-data.c b/app/core/gimp-internal-data.c
index a03f82d..0a27588 100644
--- a/app/core/gimp-internal-data.c
+++ b/app/core/gimp-internal-data.c
@@ -72,7 +72,8 @@ static gboolean gimp_internal_data_delete_data_file (Gimp
/* static variables */
-static const GimpInternalDataFile internal_data_files[] = {
+static const GimpInternalDataFile internal_data_files[] =
+{
/* Custom gradient */
{
.name = "custom" GIMP_GRADIENT_FILE_EXTENSION,
@@ -254,7 +255,7 @@ gimp_internal_data_save_data_file (Gimp *gimp,
g_print ("Writing '%s'\n", gimp_file_get_utf8_name (file));
output = G_OUTPUT_STREAM (g_file_replace (file, NULL, FALSE,
- G_FILE_CREATE_REPLACE_DESTINATION,
+ G_FILE_CREATE_NONE,
NULL, error));
g_object_unref (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]