[gnome-chess] Rely on intltool gsettings support



commit 2f9ee8265f647ce8b6a3b9f651cdccaae190c52d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Sep 10 22:01:36 2013 -0500

    Rely on intltool gsettings support

 data/Makefile.am                          |    8 +-
 data/org.gnome.gnome-chess.gschema.xml    |  110 +++++++++++++++++++++++++++++
 data/org.gnome.gnome-chess.gschema.xml.in |  110 -----------------------------
 po/POTFILES.in                            |    2 +-
 4 files changed, 115 insertions(+), 115 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index d8715e0..b5f49fe 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -13,16 +13,16 @@ dist_ui_DATA = \
        menu.ui
 
 gsettings_SCHEMAS = org.gnome.gnome-chess.gschema.xml
- INTLTOOL_XML_NOMERGE_RULE@
 @GSETTINGS_RULES@
 
 dist_sysconf_DATA = chess-engines.conf
 
 dist_man_MANS = gnome-chess.6
 
-EXTRA_DIST = org.gnome.gnome-chess.gschema.xml.in
+EXTRA_DIST = $(gsettings_SCHEMAS)
 
-CLEANFILES = $(desktop_DATA) $(gsettings_SCHEMAS)
-DISTCLEANFILES = $(desktop_DATA) $(gsettings_SCHEMAS)
+CLEANFILES = glchess.desktop
+
+DISTCLEANFILES = glchess.desktop.in
 
 -include $(top_srcdir)/git.mk
diff --git a/data/org.gnome.gnome-chess.gschema.xml b/data/org.gnome.gnome-chess.gschema.xml
new file mode 100644
index 0000000..8bdf75a
--- /dev/null
+++ b/data/org.gnome.gnome-chess.gschema.xml
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schemalist>
+  <enum id="org.gnome.gnome-chess.MoveFormat">
+    <value value="0" nick="human"/>
+    <value value="1" nick="san"/>
+    <value value="2" nick="fan"/>
+    <value value="3" nick="lan"/>
+  </enum>
+
+  <enum id="org.gnome.gnome-chess.BoardSide">
+    <value value="0" nick="white"/>
+    <value value="1" nick="black"/>
+    <value value="2" nick="human"/>
+    <value value="3" nick="current"/>
+  </enum>
+
+  <enum id="org.gnome.gnome-chess.Difficulty">
+    <value value="0" nick="easy"/>
+    <value value="1" nick="normal"/>
+    <value value="2" nick="hard"/>
+  </enum>
+
+  <schema id="org.gnome.gnome-chess" path="/org/gnome/gnome-chess/" gettext-domain="gnome-games">
+    <key name="width" type="i">
+      <default>700</default>
+      <summary>The width of the window</summary>
+      <description>The width of the main window in pixels.</description>
+    </key>
+    <key name="height" type="i">
+      <default>550</default>
+      <summary>The height of the window</summary>
+      <description>The height of the main window in pixels.</description>
+    </key>
+    <key name="maximized" type="b">
+      <default>false</default>
+      <summary>A flag to enable maximized mode</summary>
+      <description>A flag to enable maximized mode</description>
+    </key>
+    <key name="fullscreen" type="b">
+      <default>false</default>
+      <summary>A flag to enable fullscreen mode</summary>
+      <description>A flag to enable fullscreen mode</description>
+    </key>
+    <key name="show-3d" type="b">
+      <default>false</default>
+      <summary>A flag to enable 3D mode</summary>
+      <description>A flag to enable 3D mode</description>
+    </key>
+    <key name="show-3d-smooth" type="b">
+      <default>false</default>
+      <summary>A flag to smooth (anti-alias) the 3D display</summary>
+      <description>A flag to smooth (anti-alias) the 3D display</description>
+    </key>
+    <key name="piece-theme" type="s">
+      <default>'simple'</default>
+      <summary>The piece theme to use</summary>
+      <description>The piece theme to use</description>
+    </key>
+    <key name="show-move-hints" type="b">
+      <default>true</default>
+      <summary>A flag to enable move hints</summary>
+      <description>A flag to enable move hints</description>
+    </key>
+    <key name="show-numbering" type="b">
+      <default>false</default>
+      <summary>A flag to enable board numbering</summary>
+      <description>A flag to enable board numbering</description>
+    </key>
+    <key name="save-directory" type="s">
+      <default>''</default>
+      <summary>The directory to open the save game dialog in</summary>
+      <description>The directory to open the save game dialog in</description>
+    </key>
+    <key name="load-directory" type="s">
+      <default>''</default>
+      <summary>The directory to open the load game dialog in</summary>
+      <description>The directory to open the load game dialog in</description>
+    </key>
+    <key name="move-format" enum="org.gnome.gnome-chess.MoveFormat">
+      <default>'human'</default>
+      <summary>The format to display moves in</summary>
+      <description>The format to display moves in</description>
+    </key>
+    <key name="board-side" enum="org.gnome.gnome-chess.BoardSide">
+      <default>'human'</default>
+      <summary>The side of the board that is in the foreground</summary>
+      <description>The side of the board that is in the foreground</description>
+    </key>
+    <key name="duration" type="i">
+      <default>0</default>
+      <summary>The duration of a game in seconds (0 for no limit)</summary>
+      <description>The duration of a game in seconds (0 for no limit)</description>
+    </key>
+    <key name="play-as-white" type="b">
+      <default>true</default>
+      <summary>true if the human player is playing white</summary>
+      <description>true if the human player is playing white</description>
+    </key>
+    <key name="opponent" type="s">
+      <default>''</default>
+      <summary>The opponent player</summary>
+      <description>Can be 'human' (play against another human player), '' (use the first available chess 
engine) or the name of a specific engine to play against</description>
+    </key>
+    <key name="difficulty" enum="org.gnome.gnome-chess.Difficulty">
+      <default>'easy'</default>
+      <summary>Difficulty of the opponent chess engine</summary>
+      <description>Difficulty of the opponent chess engine</description>
+    </key>
+  </schema>
+</schemalist>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5fd3367..37eb18e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -4,7 +4,7 @@
 data/glchess.desktop.in.in
 [type: gettext/glade]data/gnome-chess.ui
 [type: gettext/glade]data/menu.ui
-data/org.gnome.gnome-chess.gschema.xml.in
+data/org.gnome.gnome-chess.gschema.xml
 [type: gettext/glade]data/preferences.ui
 [type: gettext/glade]data/promotion-type-selector.ui
 src/3ds.vala


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