application: Add CallsSettings class

This makes it easy to access application wide settings.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-04-16 03:54:17 +02:00
parent 0b2f146053
commit fef1531749
8 changed files with 279 additions and 1 deletions

View File

@@ -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

View 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>