1<schemalist> 2 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> 7 <description> 8 Greeting of the invading martians 9 </description> 10 </key> 11 <key name="farewell" type="s"> 12 <default l10n="messages">"So long"</default> 13 </key> 14 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'/> 18 </schema> 19 20 <schema id="org.gtk.test.no-path"> 21 <key name="test-boolean" type="b"> 22 <default>true</default> 23 </key> 24 </schema> 25 26 <schema id="org.gtk.test.basic-types" path="/tests/basic-types/"> 27 <key name="test-boolean" type="b"> 28 <default>true</default> 29 </key> 30 <key name="test-byte" type="y"> 31 <default>25</default> 32 </key> 33 <key name="test-int16" type="n"> 34 <default>-1234</default> 35 </key> 36 <key name="test-uint16" type="q"> 37 <default>1234</default> 38 </key> 39 <key name="test-int32" type="i"> 40 <default>-123456</default> 41 </key> 42 <key name="test-uint32" type="u"> 43 <default>123456</default> 44 </key> 45 <key name="test-int64" type="x"> 46 <default>-123456789</default> 47 </key> 48 <key name="test-uint64" type="t"> 49 <default>123456789</default> 50 </key> 51 <key name="test-double" type="d"> 52 <default>123.456</default> 53 </key> 54 <key name="test-string" type="s"> 55 <default>"a string, it seems"</default> 56 </key> 57 <key name="test-objectpath" type="o"> 58 <default>"/a/object/path"</default> 59 </key> 60 </schema> 61 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> 65 </key> 66 <key name="test-array" type="ai"> 67 <default>[0,1,2,3,4,5]</default> 68 </key> 69 <key name="test-dict" type="a{sau}"> 70 <default> 71 { 72 "AC": [0,0, 0,0,0,0,0,0], 73 "IV": [0,0, 0,0,0,0,0,0] 74 } 75 </default> 76 </key> 77 </schema> 78 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> 82 </key> 83 <key name="backspace" type="s"> 84 <default l10n="messages" context="keyboard label">"BackSpace"</default> 85 </key> 86 </schema> 87 88 <schema id="org.gtk.test.binding" path="/tests/binding/"> 89 <key name="bool" type="b"> 90 <default>false</default> 91 </key> 92 <key name="anti-bool" type="b"> 93 <default>false</default> 94 </key> 95 <key name="byte" type="y"> 96 <default>0</default> 97 </key> 98 <key name="int16" type="n"> 99 <default>0</default> 100 </key> 101 <key name="uint16" type="q"> 102 <default>0</default> 103 </key> 104 <key name="int" type="i"> 105 <default>0</default> 106 </key> 107 <key name="uint" type="u"> 108 <default>0</default> 109 </key> 110 <key name="int64" type="x"> 111 <default>0</default> 112 </key> 113 <key name="uint64" type="t"> 114 <default>0</default> 115 </key> 116 <key name="double" type="d"> 117 <default>0</default> 118 </key> 119 <key name="string" type="s"> 120 <default>""</default> 121 </key> 122 <key name="chararray" type="ay"> 123 <default>[48, 49]</default> 124 </key> 125 <key name="strv" type="as"> 126 <default>[]</default> 127 </key> 128 <key name="enum" enum="org.gtk.test.TestEnum"> 129 <default>'foo'</default> 130 </key> 131 <key name="flags" flags="org.gtk.test.TestFlags"> 132 <default>['mourning', 'laughing']</default> 133 </key> 134 <key name="range" type='u'> 135 <default>33</default> 136 <range min="2" max="44"/> 137 </key> 138 </schema> 139 140 <schema id='org.gtk.test.enums' path='/tests/enums/'> 141 <key name='test' enum='org.gtk.test.TestEnum'> 142 <default>'bar'</default> 143 <aliases> 144 <alias value='qux' target='quux'/> 145 </aliases> 146 </key> 147 <key name='f-test' flags='org.gtk.test.TestFlags'> 148 <default>[]</default> 149 <aliases> 150 <alias value='speaking' target='talking'/> 151 </aliases> 152 </key> 153 </schema> 154 155 <schema id='org.gtk.test.enums.direct' path='/tests/enums/'> 156 <key name='f-test' type='as'> 157 <default>[]</default> 158 </key> 159 <key name='test' type='s'> 160 <default>'bar'</default> 161 </key> 162 </schema> 163 164 <schema id='org.gtk.test.range' path='/tests/range/'> 165 <key name='val' type='i'> 166 <default>33</default> 167 <range min='2' max='44'/> 168 </key> 169 </schema> 170 171 <schema id='org.gtk.test.range.direct' path='/tests/range/'> 172 <key name='val' type='i'> 173 <default>33</default> 174 </key> 175 </schema> 176 177 <schema id='org.gtk.test.mapped' path='/tests/mapped/'> 178 <key name='val' type='i'> 179 <default>0</default> 180 </key> 181 </schema> 182 183 <schema id="org.gtk.test.descriptions" path="/a/"> 184 <key name='a' type='i'> 185 <summary> 186 a paragraph. 187 188 with some whitespace. 189 190 because not everyone has a great editor. 191 192 193 194 195 lots of space is as one. 196 </summary> 197 <default>0</default> 198 </key> 199 </schema> 200 201 <schema id='org.gtk.test.extends.base'> 202 <key name='int32' type='i'> 203 <default>0</default> 204 </key> 205 <key name='string' type='s'> 206 <default>''</default> 207 </key> 208 </schema> 209 <schema id='org.gtk.test.extends.extended' extends='org.gtk.test.extends.base'> 210 <override name="int32">42</override> 211 <key name='another-int32' type='i'> 212 <default>0</default> 213 </key> 214 </schema> 215 216 <schema id="org.gtk.test.per-desktop" path="/tests/per-desktop/"> 217 <key name="desktop" type="s"> 218 <default>"GNOME"</default> 219 </key> 220 </schema> 221 222</schemalist> 223