[tepl] FileSaver: better set defaults
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] FileSaver: better set defaults
- Date: Mon, 18 May 2020 22:11:19 +0000 (UTC)
commit c67811e322b6fb17f5e2954a03c6528cfc9ae2e6
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue May 19 00:04:54 2020 +0200
FileSaver: better set defaults
tepl/tepl-file-saver.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/tepl/tepl-file-saver.c b/tepl/tepl-file-saver.c
index 335ab0d..d7d7392 100644
--- a/tepl/tepl-file-saver.c
+++ b/tepl/tepl-file-saver.c
@@ -283,7 +283,7 @@ tepl_file_saver_class_init (TeplFileSaverClass *klass)
"newline-type",
"",
TEPL_TYPE_NEWLINE_TYPE,
- TEPL_NEWLINE_TYPE_LF,
+ TEPL_NEWLINE_TYPE_DEFAULT,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
G_PARAM_STATIC_STRINGS);
@@ -312,6 +312,9 @@ static void
tepl_file_saver_init (TeplFileSaver *saver)
{
saver->priv = tepl_file_saver_get_instance_private (saver);
+
+ saver->priv->newline_type = TEPL_NEWLINE_TYPE_DEFAULT;
+ saver->priv->flags = TEPL_FILE_SAVER_FLAGS_NONE;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]