[gtk+] Getting started: Use <choices> in the schema
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Getting started: Use <choices> in the schema
- Date: Wed, 24 Jul 2013 11:31:17 +0000 (UTC)
commit b73027aa041235392da03f77832dade3a7c26dc4
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jul 23 19:20:07 2013 -0400
Getting started: Use <choices> in the schema
The use of a manually-specified enum is a little unusual.
This is really meant to be done by <choices>.
.../application5/org.gtk.exampleapp.gschema.xml | 12 ++++++------
.../application6/org.gtk.exampleapp.gschema.xml | 12 ++++++------
.../application7/org.gtk.exampleapp.gschema.xml | 12 ++++++------
.../application8/org.gtk.exampleapp.gschema.xml | 12 ++++++------
4 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/examples/application5/org.gtk.exampleapp.gschema.xml
b/examples/application5/org.gtk.exampleapp.gschema.xml
index 89718c4..fc0c2c0 100644
--- a/examples/application5/org.gtk.exampleapp.gschema.xml
+++ b/examples/application5/org.gtk.exampleapp.gschema.xml
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
- <enum id="org.gtk.exampleapp.Transition">
- <value value="0" nick="none"/>
- <value value="1" nick="crossfade"/>
- <value value="6" nick="slide-left-right"/>
- </enum>
<schema path="/org/gtk/exampleapp/" id="org.gtk.exampleapp">
<key name="font" type="s">
<default>'Monospace 12'</default>
<summary>Font</summary>
<description>The font to be used for content.</description>
</key>
- <key name="transition" enum="org.gtk.exampleapp.Transition">
+ <key name="transition" type="s">
+ <choices>
+ <choice value='none'/>
+ <choice value='crossfade'/>
+ <choice value='slide-left-right'/>
+ </choices>
<default>'none'</default>
<summary>Transition</summary>
<description>The transition to use when switching tabs.</description>
diff --git a/examples/application6/org.gtk.exampleapp.gschema.xml
b/examples/application6/org.gtk.exampleapp.gschema.xml
index 89718c4..fc0c2c0 100644
--- a/examples/application6/org.gtk.exampleapp.gschema.xml
+++ b/examples/application6/org.gtk.exampleapp.gschema.xml
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
- <enum id="org.gtk.exampleapp.Transition">
- <value value="0" nick="none"/>
- <value value="1" nick="crossfade"/>
- <value value="6" nick="slide-left-right"/>
- </enum>
<schema path="/org/gtk/exampleapp/" id="org.gtk.exampleapp">
<key name="font" type="s">
<default>'Monospace 12'</default>
<summary>Font</summary>
<description>The font to be used for content.</description>
</key>
- <key name="transition" enum="org.gtk.exampleapp.Transition">
+ <key name="transition" type="s">
+ <choices>
+ <choice value='none'/>
+ <choice value='crossfade'/>
+ <choice value='slide-left-right'/>
+ </choices>
<default>'none'</default>
<summary>Transition</summary>
<description>The transition to use when switching tabs.</description>
diff --git a/examples/application7/org.gtk.exampleapp.gschema.xml
b/examples/application7/org.gtk.exampleapp.gschema.xml
index 89718c4..fc0c2c0 100644
--- a/examples/application7/org.gtk.exampleapp.gschema.xml
+++ b/examples/application7/org.gtk.exampleapp.gschema.xml
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
- <enum id="org.gtk.exampleapp.Transition">
- <value value="0" nick="none"/>
- <value value="1" nick="crossfade"/>
- <value value="6" nick="slide-left-right"/>
- </enum>
<schema path="/org/gtk/exampleapp/" id="org.gtk.exampleapp">
<key name="font" type="s">
<default>'Monospace 12'</default>
<summary>Font</summary>
<description>The font to be used for content.</description>
</key>
- <key name="transition" enum="org.gtk.exampleapp.Transition">
+ <key name="transition" type="s">
+ <choices>
+ <choice value='none'/>
+ <choice value='crossfade'/>
+ <choice value='slide-left-right'/>
+ </choices>
<default>'none'</default>
<summary>Transition</summary>
<description>The transition to use when switching tabs.</description>
diff --git a/examples/application8/org.gtk.exampleapp.gschema.xml
b/examples/application8/org.gtk.exampleapp.gschema.xml
index 218ae80..a6929a8 100644
--- a/examples/application8/org.gtk.exampleapp.gschema.xml
+++ b/examples/application8/org.gtk.exampleapp.gschema.xml
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
- <enum id="org.gtk.exampleapp.Transition">
- <value value="0" nick="none"/>
- <value value="1" nick="crossfade"/>
- <value value="6" nick="slide-left-right"/>
- </enum>
<schema path="/org/gtk/exampleapp/" id="org.gtk.exampleapp">
<key name="font" type="s">
<default>'Monospace 12'</default>
<summary>Font</summary>
<description>The font to be used for content.</description>
</key>
- <key name="transition" enum="org.gtk.exampleapp.Transition">
+ <key name="transition" type="s">
+ <choices>
+ <choice value='none'/>
+ <choice value='crossfade'/>
+ <choice value='slide-left-right'/>
+ </choices>
<default>'none'</default>
<summary>Transition</summary>
<description>The transition to use when switching tabs.</description>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]