diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-07-23 19:20:07 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-07-24 07:31:05 -0400 |
commit | b73027aa041235392da03f77832dade3a7c26dc4 (patch) | |
tree | be86e1a7e96c20f9f23be706618ba1a1e07cbf17 /examples/application6 | |
parent | 99203f09f27a7426cf4879a874432047134d2bba (diff) | |
download | gtk+-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/application6')
-rw-r--r-- | examples/application6/org.gtk.exampleapp.gschema.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/application6/org.gtk.exampleapp.gschema.xml b/examples/application6/org.gtk.exampleapp.gschema.xml index 89718c480c..fc0c2c003d 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> |