[dconf-editor] Add a demo relocatable schema.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Add a demo relocatable schema.
- Date: Mon, 4 Dec 2017 11:56:52 +0000 (UTC)
commit 82c5e9b1daa268a40b81d67473ace081d300e74d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Dec 4 12:56:34 2017 +0100
Add a demo relocatable schema.
editor/ca.desrt.dconf-editor.gschema.xml | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/editor/ca.desrt.dconf-editor.gschema.xml b/editor/ca.desrt.dconf-editor.gschema.xml
index 87f5db9..a044d3a 100644
--- a/editor/ca.desrt.dconf-editor.gschema.xml
+++ b/editor/ca.desrt.dconf-editor.gschema.xml
@@ -101,7 +101,7 @@
<description>For users with mice that have buttons for “Forward” and “Back”, this key will set which
button activates the “Forward” command in a browser window. Possible values range between 6 and
14.</description>
</key>
<key name="manual-schemas" type="a{ss}">
- <default>{}</default>
+
<default>{'ca.desrt.dconf-editor.Demo.Relocatable':'/ca/desrt/dconf-editor/Demo/relocatable/'}</default>
<summary>Mapping of paths to manually associated schemas</summary>
<description>A dictionary that maps schema IDs with path specifications. It is used to allow the user
to associate a relocatable schema to certain paths. Path specifications may contain wildcards in the form of
empty segments (e.g /ca/desrt/dconf-editor//), defining possibly multiple paths. The same schema ID may be
associated with multiple path specifications.</description>
</key>
@@ -261,4 +261,21 @@ If you are not interacting with D-Bus, then there is no reason to make use of th
<description>A range could limit an integer key to only allow one value, but that’s probably an error.
Dconf Editor warns you in that case.</description>
</key>
</schema>
+ <schema id="ca.desrt.dconf-editor.Demo.Relocatable">
+ <key name="boolean" type="b">
+ <default>false</default>
+ <summary>A boolean, type ‘b’</summary>
+ <description>An usual boolean value, defined by a relocatable schema.</description>
+ </key>
+ <key name="integer" type="i">
+ <default>4</default>
+ <summary>An usual integer, type ‘i’</summary>
+ <description>A 32bit signed integer, defined by a relocatable schema.</description>
+ </key>
+ <key name="flags" flags="ca.desrt.dconf-editor.DemoFlags">
+ <default>["Blue", "White", "Red"]</default>
+ <summary>Flags: choose-colors-you-love</summary>
+ <description>Flags could be set by the “enum” attribute.</description>
+ </key>
+ </schema>
</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]