diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-06 22:37:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-06 22:41:19 +0800 |
commit | 2eed198738d3637220fba7d1ce0c49ec6a840928 (patch) | |
tree | 631cef31d8bc8a45135e14646f00290e9c3bf21c /data/org.gnome.evolution.calendar.gschema.xml.in | |
parent | 1419bbb302e7b6cc6d7869ba3e6ababba5175efe (diff) | |
download | gsoc2013-evolution-2eed198738d3637220fba7d1ce0c49ec6a840928.tar.gz gsoc2013-evolution-2eed198738d3637220fba7d1ce0c49ec6a840928.tar.zst gsoc2013-evolution-2eed198738d3637220fba7d1ce0c49ec6a840928.zip |
org.gnome.evolution.calendar.gschema.xml.in: Define a 'Duration' enum.
For use with interval "units" keys.
Converting a key's type from string to enum is backward-compatable.
Diffstat (limited to 'data/org.gnome.evolution.calendar.gschema.xml.in')
-rw-r--r-- | data/org.gnome.evolution.calendar.gschema.xml.in | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/data/org.gnome.evolution.calendar.gschema.xml.in b/data/org.gnome.evolution.calendar.gschema.xml.in index bc1f238140..241b3f3bbc 100644 --- a/data/org.gnome.evolution.calendar.gschema.xml.in +++ b/data/org.gnome.evolution.calendar.gschema.xml.in @@ -1,4 +1,12 @@ <schemalist> + + <!-- Keep this synchronized with EDurationType. --> + <enum id="org.gnome.evolution.calendar.Duration"> + <value nick='minutes' value='0'/> + <value nick='hours' value='1'/> + <value nick='days' value='2'/> + </enum> + <schema gettext-domain="evolution" id="org.gnome.evolution.calendar" path="/org/gnome/evolution/calendar/"> <key name="audio-dir" type="s"> <default>''</default> @@ -10,7 +18,7 @@ <_summary>Birthday and anniversary reminder value</_summary> <_description>Number of units for determining a birthday or anniversary reminder</_description> </key> - <key name="ba-reminder-units" type="s"> + <key name="ba-reminder-units" enum="org.gnome.evolution.calendar.Duration"> <default>'minutes'</default> <_summary>Birthday and anniversary reminder units</_summary> <_description>Units for a birthday or anniversary reminder, "minutes", "hours" or "days"</_description> @@ -75,7 +83,7 @@ <_summary>Default reminder value</_summary> <_description>Number of units for determining a default reminder</_description> </key> - <key name="default-reminder-units" type="s"> + <key name="default-reminder-units" enum="org.gnome.evolution.calendar.Duration"> <default>'minutes'</default> <_summary>Default reminder units</_summary> <_description>Units for a default reminder, "minutes", "hours" or "days"</_description> @@ -115,7 +123,7 @@ <_summary>Hide completed tasks</_summary> <_description>Whether to hide completed tasks in the tasks view</_description> </key> - <key name="hide-completed-tasks-units" type="s"> + <key name="hide-completed-tasks-units" enum="org.gnome.evolution.calendar.Duration"> <default>'days'</default> <_summary>Hide task units</_summary> <_description>Units for determining when to hide tasks, "minutes", "hours" or "days"</_description> @@ -321,4 +329,5 @@ <_description>Days on which the start and end of work hours should be indicated</_description> </key> </schema> + </schemalist> |