[gnome-games] Add gconf descriptions



commit e169803458373ef1c8f1aaeda1b1d4fc66970ced
Author: Robert Ancell <robert ancell gmail com>
Date:   Fri Jul 10 07:38:25 2009 +1000

    Add gconf descriptions

 gnome-sudoku/data/gnome-sudoku.schemas.in |  128 +++++++++++++++++++++++++----
 gnome-sudoku/src/lib/main.py              |    2 -
 2 files changed, 112 insertions(+), 18 deletions(-)
---
diff --git a/gnome-sudoku/data/gnome-sudoku.schemas.in b/gnome-sudoku/data/gnome-sudoku.schemas.in
index 22f0f36..221f696 100644
--- a/gnome-sudoku/data/gnome-sudoku.schemas.in
+++ b/gnome-sudoku/data/gnome-sudoku.schemas.in
@@ -7,6 +7,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>60</default>
+      <locale name="C">
+        <short>The number of seconds between automatic saves</short>
+        <long>The number of seconds between automatic saves</long>
+      </locale>
     </schema>
 
     <schema>
@@ -15,6 +19,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>10</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -23,6 +31,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short>Print games that have been played</short>
+        <long>Print games that have been played</long>
+      </locale>
     </schema>
 
     <schema>
@@ -31,6 +43,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short>Mark printed games as played</short>
+        <long>Mark printed games as played</long>
+      </locale>
     </schema>
 
     <schema>
@@ -39,6 +55,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>9</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -47,6 +67,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -55,6 +79,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
     
     <schema>
@@ -63,6 +91,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
     
     <schema>
@@ -71,6 +103,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
     
     <schema>
@@ -79,6 +115,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -87,6 +127,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -95,6 +139,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -103,6 +151,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -111,6 +163,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short>Generate new puzzles in the background</short>
+        <long>Generate new puzzles in the background</long>
+      </locale>
     </schema>
 
     <schema>
@@ -119,6 +175,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>90</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -127,6 +187,10 @@
       <owner>gnome-sudoku</owner>
       <type>float</type>
       <default>0.0</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -135,6 +199,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>700</default>
+      <locale name="C">
+        <short>Width of application window in pixels</short>
+        <long>Width of application window in pixels</long>
+      </locale>
     </schema>
 
     <schema>
@@ -143,6 +211,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>675</default>
+      <locale name="C">
+        <short>Height of application window in pixels</short>
+        <long>Height of application window in pixels</long>
+      </locale>
     </schema>
 
     <schema>
@@ -151,6 +223,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>4</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -159,6 +235,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short>Show hint highlights</short>
+        <long>Show hint highlights</long>
+      </locale>
     </schema>
 
     <schema>
@@ -167,6 +247,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -175,6 +259,10 @@
       <owner>gnome-sudoku</owner>
       <type>string</type>
       <default>black</default>
+      <locale name="C">
+        <short>Color of the grid border</short>
+        <long>Color of the grid border</long>
+      </locale>
     </schema>
 
     <schema>
@@ -183,6 +271,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
+      <locale name="C">
+        <short>Show the application toolbar</short>
+        <long>Show the application toolbar</long>
+      </locale>
     </schema>
 
     <schema>
@@ -191,6 +283,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -199,6 +295,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short>Show hints</short>
+        <long>Show hints</long>
+      </locale>
     </schema>
 
     <schema>
@@ -207,6 +307,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>FALSE</default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -215,22 +319,10 @@
       <owner>gnome-sudoku</owner>
       <type>bool</type>
       <default>TRUE</default>
-    </schema>
-
-    <schema>
-      <key>/schemas/apps/gnome-sudoku/print_multiple_maximum_difficulty</key>
-      <applyto>/apps/gnome-sudoku/print_multiple_maximum_difficulty</applyto>
-      <owner>gnome-sudoku</owner>
-      <type>float</type>
-      <default>0.0</default>
-    </schema>
-
-    <schema>
-      <key>/schemas/apps/gnome-sudoku/player</key>
-      <applyto>/apps/gnome-sudoku/player</applyto>
-      <owner>gnome-sudoku</owner>
-      <type>string</type>
-      <default></default>
+      <locale name="C">
+        <short></short>
+        <long></long>
+      </locale>
     </schema>
 
     <schema>
@@ -239,6 +331,10 @@
       <owner>gnome-sudoku</owner>
       <type>int</type>
       <default>2</default>
+      <locale name="C">
+        <short>Number of puzzles to print on a page</short>
+        <long>Number of puzzles to print on a page</long>
+      </locale>
     </schema>
     
   </schemalist>
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 165da23..4ed0122 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -141,7 +141,6 @@ class UI (gconf_wrapper.GConfWrapper):
 
     initial_prefs = {'group_size':9,
                      'always_show_hints':False,
-                     'player':os.environ.get('USERNAME', ''),
                      'difficulty':0.0,
                      'minimum_number_of_new_puzzles':MIN_NEW_PUZZLES,
                      'highlight':False,
@@ -444,7 +443,6 @@ class UI (gconf_wrapper.GConfWrapper):
                 self.gconf[k]
             except:
                 self.gconf[k] = v
-        self.player = self.gconf['player']
 
     @simple_debug
     @inactivate_new_game_etc



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