Define an enum for 'contacts-reminder-units' setting.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 4 Mar 2013 21:26:41 +0000 (16:26 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 4 Mar 2013 21:27:50 +0000 (16:27 -0500)
The enum values correspond to EDurationType in Evolution.

data/org.gnome.evolution-data-server.calendar.gschema.xml.in

index 4f65e01..a676a83 100644 (file)
@@ -1,5 +1,13 @@
 <schemalist>
+
+  <enum id='org.gnome.evolution-data-server.calendar.Duration'>
+    <value nick='minutes' value='0'/>
+    <value nick='hours' value='1'/>
+    <value nick='days' value='2'/>
+  </enum>
+
   <schema gettext-domain="evolution-data-server" id="org.gnome.evolution-data-server.calendar" path="/org/gnome/evolution-data-server/calendar/">
+
     <key name="contacts-reminder-enabled" type="b">
       <default>false</default>
       <_summary>Birthday and anniversary reminder</_summary>
       <_summary>Birthday and anniversary reminder value</_summary>
       <_description>Number of units for determining a birthday or anniversary reminder</_description>
     </key>
-    <key name="contacts-reminder-units" type="s">
+    <key name="contacts-reminder-units" enum='org.gnome.evolution-data-server.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>
     </key>
   </schema>
+
 </schemalist>