3 <schema id="org.gtk.test" path="/tests/" gettext-domain="test">
4 <key name="greeting" type="s">
5 <default l10n="messages">"Hello, earthlings"</default>
6 <summary>A greeting</summary>
8 Greeting of the invading martians
11 <key name="farewell" type="s">
12 <default l10n="messages">"So long"</default>
15 <child name='basic-types' schema='org.gtk.test.basic-types'/>
16 <child name='complex-types' schema='org.gtk.test.complex-types'/>
17 <child name='localized' schema='org.gtk.test.localized'/>
20 <schema id="org.gtk.test.no-path">
21 <key name="test-boolean" type="b">
22 <default>true</default>
26 <schema id="org.gtk.test.basic-types" path="/tests/basic-types/">
27 <key name="test-boolean" type="b">
28 <default>true</default>
30 <key name="test-byte" type="y">
33 <key name="test-int16" type="n">
34 <default>-1234</default>
36 <key name="test-uint16" type="q">
37 <default>1234</default>
39 <key name="test-int32" type="i">
40 <default>-123456</default>
42 <key name="test-uint32" type="u">
43 <default>123456</default>
45 <key name="test-int64" type="x">
46 <default>-123456789</default>
48 <key name="test-uint64" type="t">
49 <default>123456789</default>
51 <key name="test-double" type="d">
52 <default>123.456</default>
54 <key name="test-string" type="s">
55 <default>"a string, it seems"</default>
57 <key name="test-objectpath" type="o">
58 <default>"/a/object/path"</default>
62 <schema id="org.gtk.test.complex-types" path="/tests/complex-types/">
63 <key name="test-tuple" type="(s(ii))">
64 <default>("one",(2,3))</default>
66 <key name="test-array" type="ai">
67 <default>[0,1,2,3,4,5]</default>
69 <key name="test-dict" type="a{sau}">
72 "AC": [0,0, 0,0,0,0,0,0],
73 "IV": [0,0, 0,0,0,0,0,0]
79 <schema id="org.gtk.test.localized" path="/tests/localized/" gettext-domain="test">
80 <key name="error-message" type="s">
81 <default l10n="messages">"Unnamed"</default>
83 <key name="backspace" type="s">
84 <default l10n="messages" context="keyboard label">"BackSpace"</default>
88 <schema id="org.gtk.test.binding" path="/tests/binding/">
89 <key name="bool" type="b">
90 <default>false</default>
92 <key name="anti-bool" type="b">
93 <default>false</default>
95 <key name="byte" type="y">
98 <key name="int16" type="n">
101 <key name="uint16" type="q">
104 <key name="int" type="i">
107 <key name="uint" type="u">
110 <key name="int64" type="x">
113 <key name="uint64" type="t">
116 <key name="double" type="d">
119 <key name="string" type="s">
120 <default>""</default>
122 <key name="chararray" type="ay">
123 <default>[48, 49]</default>
125 <key name="strv" type="as">
126 <default>[]</default>
128 <key name="enum" enum="org.gtk.test.TestEnum">
129 <default>'foo'</default>
131 <key name="flags" flags="org.gtk.test.TestFlags">
132 <default>['mourning', 'laughing']</default>
136 <schema id='org.gtk.test.enums' path='/tests/enums/'>
137 <key name='test' enum='org.gtk.test.TestEnum'>
138 <default>'bar'</default>
140 <alias value='qux' target='quux'/>
143 <key name='f-test' flags='org.gtk.test.TestFlags'>
144 <default>[]</default>
146 <alias value='speaking' target='talking'/>
151 <schema id='org.gtk.test.enums.direct' path='/tests/enums/'>
152 <key name='f-test' type='as'>
153 <default>[]</default>
155 <key name='test' type='s'>
156 <default>'bar'</default>
160 <schema id='org.gtk.test.range' path='/tests/range/'>
161 <key name='val' type='i'>
162 <default>33</default>
163 <range min='2' max='44'/>
167 <schema id='org.gtk.test.range.direct' path='/tests/range/'>
168 <key name='val' type='i'>
169 <default>33</default>
173 <schema id='org.gtk.test.mapped' path='/tests/mapped/'>
174 <key name='val' type='i'>
179 <schema id="org.gtk.test.descriptions" path="/a/">
180 <key name='a' type='i'>
184 with some whitespace.
186 because not everyone has a great editor.
191 lots of space is as one.
197 <schema id='org.gtk.test.extends.base'>
198 <key name='int32' type='i'>
201 <key name='string' type='s'>
202 <default>''</default>
205 <schema id='org.gtk.test.extends.extended' extends='org.gtk.test.extends.base'>
206 <override name="int32">42</override>
207 <key name='another-int32' type='i'>