mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-08 00:48:45 +02:00
GSettings: new <schema> tags 'extends', 'list-of'
Add support for extends='' and list-of='' tags to the <schema> element. The attributes are parsed and some sanity-checking is done but currently nothing happens as a result. Add some tests.
This commit is contained in:
21
gio/tests/schema-tests/extending.gschema.xml
Normal file
21
gio/tests/schema-tests/extending.gschema.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<schemalist>
|
||||
<!-- c extends b extends a -->
|
||||
<schema id='a'/>
|
||||
<schema id='b' extends='a'/>
|
||||
<schema id='c' extends='b'/>
|
||||
|
||||
<!-- lists of each -->
|
||||
<schema id='la' list-of='a'/>
|
||||
<schema id='lb' list-of='b'/>
|
||||
<schema id='lc' list-of='c'/>
|
||||
|
||||
<!-- extend 'la', override the list-of to 'b' -->
|
||||
<schema id='lb-la' list-of='b' extends='la'/>
|
||||
|
||||
<!-- extend 'la', override the list-of to 'c' -->
|
||||
<schema id='lc-la' list-of='c' extends='la'/>
|
||||
<!-- extend 'lb', override the list-of to 'c' -->
|
||||
<schema id='lc-lb' list-of='c' extends='lb'/>
|
||||
<!-- extend 'lb-la', override the list-of to 'c' -->
|
||||
<schema id='lc-lb-la' list-of='c' extends='lb-la'/>
|
||||
</schemalist>
|
Reference in New Issue
Block a user