[gsettings-desktop-schemas] Add a key for the clock format



commit b25e2cb61b94f60f7c5bc3aa690b848363cb8c02
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Dec 2 15:38:39 2010 +0000

    Add a key for the clock format
    
    To be used by the shell as well as the date/time panel.

 headers/gdesktop-enums.h                        |    6 ++++++
 schemas/org.gnome.desktop.interface.gschema.xml |    7 +++++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h
index 3dc983c..86e1b97 100644
--- a/headers/gdesktop-enums.h
+++ b/headers/gdesktop-enums.h
@@ -76,4 +76,10 @@ typedef enum
   G_DESKTOP_MOUSE_DWELL_DIRECTION_DOWN
 } GDesktopMouseDwellDirection;
 
+typedef enum
+{
+  G_DESKTOP_CLOCK_FORMAT_24H,
+  G_DESKTOP_CLOCK_FORMAT_12H
+} GDesktopClockFormat;
+
 #endif /* __gdesktop_enums_h__ */
diff --git a/schemas/org.gnome.desktop.interface.gschema.xml b/schemas/org.gnome.desktop.interface.gschema.xml
index ace1fe1..8abf579 100644
--- a/schemas/org.gnome.desktop.interface.gschema.xml
+++ b/schemas/org.gnome.desktop.interface.gschema.xml
@@ -227,5 +227,12 @@
       <summary>List of symbolic names and color equivalents</summary>
       <description>A '\n' separated list of "name:color" as defined by the 'gtk-color-scheme' setting</description>
     </key>
+    <key name="clock-format" enum="org.gnome.desktop.GDesktopClockFormat">
+      <default>'24h'</default>
+      <summary>Whether the clock displays in 24h or 12h format</summary>
+      <description>
+        Whether the clock displays in 24h or 12h format
+      </description>
+    </key>
   </schema>
 </schemalist>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]