File: ide-file-settings.defs

package info (click to toggle)
gnome-builder 3.22.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 29,056 kB
  • ctags: 19,097
  • sloc: ansic: 165,400; xml: 6,852; sh: 5,050; makefile: 3,418; python: 2,410; lex: 184; cpp: 176; yacc: 170; sed: 16
file content (118 lines) | stat: -rw-r--r-- 6,991 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
IDE_FILE_SETTINGS_PROPERTY (ENCODING, encoding,
                            gchar *, const gchar *,
                            "encoding",
                            g_param_spec_string ("encoding",
                                                 "Encoding",
                                                 "The character encoding.",
                                                 NULL,
                                                 (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            g_free (priv->encoding); priv->encoding = g_strdup (encoding);,
                            string)

IDE_FILE_SETTINGS_PROPERTY (INDENT_STYLE, indent_style,
                            IdeIndentStyle, IdeIndentStyle,
                            "indent-style",
                            g_param_spec_enum ("indent-style",
                                               "Indent Style",
                                               "The indentation style.",
                                               IDE_TYPE_INDENT_STYLE,
                                               IDE_INDENT_STYLE_TABS,
                                               (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->indent_style = indent_style;,
                            enum)

IDE_FILE_SETTINGS_PROPERTY (INDENT_WIDTH, indent_width,
                            gint, gint,
                            "indent-width",
                            g_param_spec_int ("indent-width",
                                              "Indent Width",
                                              "The indentation width, or -1 to use tab-width.",
                                              -1,
                                              32,
                                              -1,
                                              (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->indent_width = indent_width;,
                            int)

IDE_FILE_SETTINGS_PROPERTY (INSERT_TRAILING_NEWLINE, insert_trailing_newline,
                            gboolean, gboolean,
                            "insert-trailing-newline",
                            g_param_spec_boolean ("insert-trailing-newline",
                                                  "Insert Trailing Newline",
                                                  "If a trailing newline should be added when saving.",
                                                  FALSE,
                                                  (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->insert_trailing_newline = !!insert_trailing_newline;,
                            boolean)

IDE_FILE_SETTINGS_PROPERTY (OVERWRITE_BRACES, overwrite_braces,
                            gboolean, gboolean,
                            "overwrite-braces",
                            g_param_spec_boolean ("overwrite-braces",
                                                  "Overwrite Braces",
                                                  "Type over existing braces",
                                                  FALSE,
                                                  (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->overwrite_braces = !!overwrite_braces;,
                            boolean)

IDE_FILE_SETTINGS_PROPERTY (NEWLINE_TYPE, newline_type,
                            GtkSourceNewlineType, GtkSourceNewlineType,
                            "newline-type",
                            g_param_spec_enum ("newline-type",
                                               "Newline Type",
                                               "The type of newline to use at the end of each line.",
                                               GTK_SOURCE_TYPE_NEWLINE_TYPE,
                                               GTK_SOURCE_NEWLINE_TYPE_DEFAULT,
                                               (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->newline_type = newline_type;,
                            enum)

IDE_FILE_SETTINGS_PROPERTY (RIGHT_MARGIN_POSITION, right_margin_position,
                            guint, guint,
                            "right-margin-position",
                            g_param_spec_uint ("right-margin-position",
                                               "Right Margin Position",
                                               "The position to draw the right margin, in characters.",
                                               1,
                                               1000,
                                               80,
                                               (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->right_margin_position = right_margin_position;,
                            uint)

IDE_FILE_SETTINGS_PROPERTY (SHOW_RIGHT_MARGIN, show_right_margin,
                            gboolean, gboolean,
                            "show-right-margin",
                            g_param_spec_boolean ("show-right-margin",
                                                  "Show Right Margin",
                                                  "If the right margin line should be shown in the editor.",
                                                  FALSE,
                                                  (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->show_right_margin = !!show_right_margin;,
                            boolean)

IDE_FILE_SETTINGS_PROPERTY (TAB_WIDTH, tab_width,
                            guint, guint,
                            "tab-width",
                            g_param_spec_uint ("tab-width",
                                               "Tab Width",
                                               "The width of a tab in characters",
                                               1,
                                               32,
                                               8,
                                               (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->tab_width = tab_width;,
                            uint)

IDE_FILE_SETTINGS_PROPERTY (TRIM_TRAILING_WHITESPACE, trim_trailing_whitespace,
                            gboolean, gboolean,
                            "trim-trailing-whitespace",
                            g_param_spec_boolean ("trim-trailing-whitespace",
                                                  "Trim Trailing Whitespace",
                                                  "If trailing whitespace should be trimmed from lines.",
                                                  FALSE,
                                                  (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)),
                            priv->trim_trailing_whitespace = !!trim_trailing_whitespace;,
                            boolean)