Commit c8a7bb6c authored by Matthias Clasen's avatar Matthias Clasen

Merge GSettings tests

parent 265ca3db
......@@ -16,7 +16,6 @@ progs_ldadd = \
$(top_builddir)/gobject/libgobject-2.0.la \
$(top_builddir)/gio/libgio-2.0.la
TEST_PROGS += \
memory-input-stream \
memory-output-stream \
......@@ -32,7 +31,8 @@ TEST_PROGS += \
filter-streams \
simple-async-result \
srvtarget \
contexts
contexts \
gsettings
SAMPLE_PROGS = \
resolver \
......@@ -133,4 +133,19 @@ contexts_SOURCES = contexts.c
contexts_LDADD = $(progs_ldadd) \
$(top_builddir)/gthread/libgthread-2.0.la
gsettings_SOURCES = gsettings.c gschemas.compiled test.mo
gsettings_LDADD = $(progs_ldadd)
EXTRA_DIST += org.gtk.test.gschema org.gtk.test.gschema.xml de.po
BUILT_SOURCES = gschemas.compiled test.mo
test.mo: de.po
$(MSGFMT) -o test.mo de.po; \
$(MKDIR_P) de/LC_MESSAGES; \
cp -f test.mo de/LC_MESSAGES
gschemas.compiled: *.gschema
$(top_builddir)/gio/gschema-compile --targetdir=${bulddir} ${srcdir}
DISTCLEAN_FILES = applications/mimeinfo.cache
msgid ""
msgstr ""
"Project-Id-Version: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: \n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
msgid "\"Unnamed\""
msgstr "\"Unbenannt\""
msgctxt "keyboard label"
msgid "\"BackSpace\""
msgstr "\"Löschen\""
This diff is collapsed.
schema org.gtk.test:
gettext-domain: test
path: /tests/
key greeting = @s "Hello, earthlings"
l10n: messages
summary: A greeting
description: Greeting of the invading martians
key farewell = @s "So long"
l10n: messages
child basic-types:
key test-boolean = @b true
key test-byte = @y 25
key test-int16 = @n -1234
key test-uint16 = @q 1234
key test-int32 = @i -123456
key test-uint32 = @u 123456
key test-int64 = @x -123456789
key test-uint64 = @t 123456789
key test-double = @d 123.456
key test-string = @s "a string, it seems"
key test-objectpath = @o "/a/object/path"
child complex-types:
key test-tuple = @(s(ii)) ("one",(2,3))
key test-array = @ai [0,1,2,3,4,5]
child localized:
gettext-domain: glib20
key error-message = @s "Unnamed"
l10n: messages
child binding:
key bool = @b false
key int = @i 0
key double = @d 0
key string = @s ""
<schemalist>
<schema id="org.gtk.test" path="/tests/" gettext-domain="test">
<key name="greeting" type="s">
<default l10n="messages">"Hello, earthlings"</default>
<summary>A greeting</summary>
<description>
Greeting of the invading martians
</description>
</key>
<key name="farewell" type="s">
<default l10n="messages">"So long"</default>
</key>
<child name='basic-types' schema='org.gtk.test.basic-types'/>
<child name='complex-types' schema='org.gtk.test.complex-types'/>
<child name='localized' schema='org.gtk.test.localized'/>
</schema>
<schema id="org.gtk.test.basic-types" path="/tests/basic-types/">
<key name="test-boolean" type="b">
<default>true</default>
</key>
<key name="test-byte" type="y">
<default>25</default>
</key>
<key name="test-int16" type="n">
<default>-1234</default>
</key>
<key name="test-uint16" type="q">
<default>1234</default>
</key>
<key name="test-int32" type="i">
<default>-123456</default>
</key>
<key name="test-uint32" type="u">
<default>123456</default>
</key>
<key name="test-int64" type="x">
<default>-123456789</default>
</key>
<key name="test-uint64" type="t">
<default>123456789</default>
</key>
<key name="test-double" type="d">
<default>123.456</default>
</key>
<key name="test-string" type="s">
<default>"a string, it seems"</default>
</key>
<key name="test-objectpath" type="o">
<default>"/a/object/path"</default>
</key>
</schema>
<schema id="org.gtk.test.complex-types" path="/tests/complex-types/">
<key name="test-tuple" type="(s(ii))">
<default>("one",(2,3))</default>
</key>
<key name="test-array" type="ai">
<default>[0,1,2,3,4,5]</default>
</key>
</schema>
<schema id="org.gtk.test.localized" path="/tests/localized/" gettext-domain="test">
<key name="error-message" type="s">
<default l10n="messages">"Unnamed"</default>
</key>
<key name="backspace" type="s">
<default l10n="messages" context="keyboard label">"BackSpace"</default>
</key>
</schema>
<schema id="org.gtk.test.binding" path="/tests/binding/">
<key name="bool" type="b">
<default>false</default>
</key>
<key name="int" type="i">
<default>0</default>
</key>
<key name="double" type="d">
<default>0</default>
</key>
<key name="string" type="s">
<default>""</default>
</key>
</schema>
</schemalist>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment