application: Add CallsSettings class
This makes it easy to access application wide settings.
This commit is contained in:
@@ -67,3 +67,14 @@ install_data(
|
||||
'apps'
|
||||
)
|
||||
)
|
||||
|
||||
install_data('sm.puri.Calls.gschema.xml',
|
||||
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
|
||||
)
|
||||
|
||||
compile_schemas = find_program('glib-compile-schemas', required: false)
|
||||
if compile_schemas.found()
|
||||
test('Validate schema file', compile_schemas,
|
||||
args: ['--strict', '--dry-run', meson.current_source_dir()]
|
||||
)
|
||||
endif
|
||||
|
12
data/sm.puri.Calls.gschema.xml
Normal file
12
data/sm.puri.Calls.gschema.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<schemalist gettext-domain="purism-calls">
|
||||
<schema id="sm.puri.Calls" path="/sm/puri/Calls/">
|
||||
|
||||
<key name="auto-use-default-origins" type="b">
|
||||
<default>true</default>
|
||||
<summary>Whether calls should automatically use the default origin</summary>
|
||||
<description>Whether calls should automatically use the default origin</description>
|
||||
</key>
|
||||
|
||||
</schema>
|
||||
</schemalist>
|
Reference in New Issue
Block a user