Merge branch 'file-replace-trap' into 'master'

print-editor: Fix saving

See merge request GNOME/gtk!3536
This commit is contained in:
Matthias Clasen
2021-05-09 23:06:49 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ save_file (GFile *save_filename)
error = NULL;
g_file_replace_contents (save_filename,
text, -1,
text, strlen (text),
NULL, FALSE,
G_FILE_CREATE_NONE,
NULL,

View File

@@ -192,7 +192,7 @@ save_to_file (GtkInspectorCssEditor *ce,
text = get_current_text (ce->priv->text);
g_file_replace_contents (file, text, -1,
g_file_replace_contents (file, text, strlen (text),
NULL,
FALSE,
G_FILE_CREATE_NONE,