[dconf-editor] Add dict-entry example.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Add dict-entry example.
- Date: Sat, 16 Jun 2018 16:12:09 +0000 (UTC)
commit b506b6316f5a26b79517dec715b1fd9b54213b79
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Jun 16 18:06:45 2018 +0200
Add dict-entry example.
editor/ca.desrt.dconf-editor.gschema.xml | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/editor/ca.desrt.dconf-editor.gschema.xml b/editor/ca.desrt.dconf-editor.gschema.xml
index ec464e3..890aaf8 100644
--- a/editor/ca.desrt.dconf-editor.gschema.xml
+++ b/editor/ca.desrt.dconf-editor.gschema.xml
@@ -251,6 +251,16 @@
<summary>A D-Bus signature, type ‘g’</summary>
<description>A D-Bus signature is a string used as type signature for a D-Bus method or
message.

If you are not interacting with D-Bus, then there is no reason to make use of this
type.</description>
</key>
+ <key name="dict-entry" type="{ss}">
+ <default>{'color', 'red'}</default>
+ <summary>A dictionary entry</summary>
+ <description>A dictionary maps values of a basic type to another value (of any type). A dictionary
entry is one such mapping.</description>
+ </key>
+ <key name="dictionary" type="a{sv}">
+ <default>{'title': <'Example'>, 'character': <uint32 56>, 'bold':
<true>}</default>
+ <summary>A “vardict”, type ‘a{sv}’</summary>
+ <description>A dictionary maps values of a basic type to another value (of any type). One simple use
case is to map strings to variants.</description>
+ </key>
<key name="double" type="d">
<default>3.1415926535897933</default>
<summary>A double, type ‘d’</summary>
@@ -328,11 +338,6 @@
<summary>A variant, type ‘v’</summary>
<description>Variants could be stored inside variants, and consequently as a GSettings type. Their
representation use the XML brackets (‘<’ and ‘>’ characters, in a gschema file “&#60;” and
“&#62;” respectively), with a parsable representation of their content inside. If unclear, the type can
be given in the value with a prefix annotation like “@x” (where “x” is the type string) or “int64”. See
https://developer.gnome.org/glib/stable/gvariant-text.html for complete documentation.</description>
</key>
- <key name="variant-dictionary" type="a{sv}">
- <default>{'title': <'Example'>, 'character': <uint32 56>, 'bold':
<true>}</default>
- <summary>A “vardict”, type ‘a{sv}’</summary>
- <description>A dictionary maps values of a basic type to another value (of any type). One simple use
case is to map strings to variants.</description>
- </key>
<key name="weird-enum" enum="ca.desrt.dconf-editor.DemoWeirdEnum">
<default>'only-choice'</default>
<summary>A 1-choice enumeration</summary>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]