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.
This commit is contained in:
@ -72,7 +72,8 @@ static gboolean gimp_internal_data_delete_data_file (Gimp
|
|||||||
|
|
||||||
/* static variables */
|
/* static variables */
|
||||||
|
|
||||||
static const GimpInternalDataFile internal_data_files[] = {
|
static const GimpInternalDataFile internal_data_files[] =
|
||||||
|
{
|
||||||
/* Custom gradient */
|
/* Custom gradient */
|
||||||
{
|
{
|
||||||
.name = "custom" GIMP_GRADIENT_FILE_EXTENSION,
|
.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));
|
g_print ("Writing '%s'\n", gimp_file_get_utf8_name (file));
|
||||||
|
|
||||||
output = G_OUTPUT_STREAM (g_file_replace (file, NULL, FALSE,
|
output = G_OUTPUT_STREAM (g_file_replace (file, NULL, FALSE,
|
||||||
G_FILE_CREATE_REPLACE_DESTINATION,
|
G_FILE_CREATE_NONE,
|
||||||
NULL, error));
|
NULL, error));
|
||||||
|
|
||||||
g_object_unref (file);
|
g_object_unref (file);
|
||||||
|
Reference in New Issue
Block a user