summaryrefslogtreecommitdiff
path: root/examples/application7
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-07-23 19:20:07 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-07-24 07:31:05 -0400
commitb73027aa041235392da03f77832dade3a7c26dc4 (patch)
treebe86e1a7e96c20f9f23be706618ba1a1e07cbf17 /examples/application7
parent99203f09f27a7426cf4879a874432047134d2bba (diff)
downloadgtk+-b73027aa041235392da03f77832dade3a7c26dc4.tar.gz
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>.
Diffstat (limited to 'examples/application7')
-rw-r--r--examples/application7/org.gtk.exampleapp.gschema.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/application7/org.gtk.exampleapp.gschema.xml b/examples/application7/org.gtk.exampleapp.gschema.xml
index 89718c480c..fc0c2c003d 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>