[Xword-commits] r29 - in trunk/root/usr: bin share/xword

terrencegf at garage.maemo.org terrencegf at garage.maemo.org
Tue Apr 22 08:19:18 EEST 2008


Author: terrencegf
Date: 2008-04-22 08:19:16 +0300 (Tue, 22 Apr 2008)
New Revision: 29

Added:
   trunk/root/usr/share/xword/check.xpm
   trunk/root/usr/share/xword/solve.xpm
Modified:
   trunk/root/usr/bin/xword
Log:
Since there are two blank spaces on the new keyboard toolbar, I added two
icons/commands for "check word" and "solve word".


Modified: trunk/root/usr/bin/xword
===================================================================
--- trunk/root/usr/bin/xword	2008-04-22 05:07:37 UTC (rev 28)
+++ trunk/root/usr/bin/xword	2008-04-22 05:19:16 UTC (rev 29)
@@ -1234,12 +1234,12 @@
         self.box.pack_start(self.toolbox, False, False, 0)
 
         self.toolbar = self.create_toolbar()
-        self.letterbar1 = self.create_letterbar(
-            ['A','D','G','J','M','P','S','V','Y','ISO_Left_Tab','Left'])
-        self.letterbar2 = self.create_letterbar(
-            ['B','E','H','K','N','Q','T','W','Z','Up','Return','Down'])
-        self.letterbar3 = self.create_letterbar(
-            ['C','F','I','L','O','R','U','X','BackSpace','Tab','Right'])
+        self.letterbar1 = self.create_letterbar(['A','D','G','J','M','P',
+            'S','V','Y','ISO_Left_Tab','Left','F12'])
+        self.letterbar2 = self.create_letterbar(['B','E','H','K','N','Q',
+            'T','W','Z','Up','Return','Down'])
+        self.letterbar3 = self.create_letterbar(['C','F','I','L','O','R',
+            'U','X','BackSpace','Tab','Right','Escape'])
 
         self.create_widgets()
         self.setup_controller()
@@ -1801,6 +1801,10 @@
                          self.load_icon(HOME_PATH+'/nextword.xpm'),None)
             elif item == 'ISO_Left_Tab': button = gtk.ToolButton(
                          self.load_icon(HOME_PATH+'/prevword.xpm'),None)
+            elif item == 'Escape': button = gtk.ToolButton(
+                         self.load_icon(HOME_PATH+'/check.xpm'),None)
+            elif item == 'F12': button = gtk.ToolButton(
+                         self.load_icon(HOME_PATH+'/solve.xpm'),None)
             else:
                 button = gtk.ToolButton(None,item)
 
@@ -1925,6 +1929,7 @@
         elif name == 'F7': c.next_word(1)
         elif name == 'F8': c.next_word(-1)
         elif name == 'Escape': c.check_word()
+        elif name == 'F12': c.solve_word()
         else: return False
 
         return True

Added: trunk/root/usr/share/xword/check.xpm
===================================================================
--- trunk/root/usr/share/xword/check.xpm	                        (rev 0)
+++ trunk/root/usr/share/xword/check.xpm	2008-04-22 05:19:16 UTC (rev 29)
@@ -0,0 +1,24 @@
+/* XPM */
+static char *check_xpm[] = {
+"18 18 2 1",
+"0	c #000000",
+" 	c None",
+"                  ",
+"            0     ",
+"           0 0    ",
+"           0  0   ",
+"          0    0  ",
+"          0    0  ",
+"         0    0   ",
+"         0   0    ",
+"   0    0   0     ",
+"  0 0   0   0     ",
+" 0  0  0   0      ",
+" 0   00   0       ",
+"  0      0 0     0",
+"   0    0  0  0  0",
+"    0   0  0  0  0",
+"     0 0   0  0  0",
+"      0    0 0 0 0",
+"            0   0 "
+};

Added: trunk/root/usr/share/xword/solve.xpm
===================================================================
--- trunk/root/usr/share/xword/solve.xpm	                        (rev 0)
+++ trunk/root/usr/share/xword/solve.xpm	2008-04-22 05:19:16 UTC (rev 29)
@@ -0,0 +1,24 @@
+/* XPM */
+static char *hint_xpm[] = {
+"18 18 2 1",
+"0	c #000000",
+" 	c None",
+"                  ",
+"       000        ",
+"     00   00      ",
+"    0       0     ",
+"   0   000   0    ",
+"   0  0   0  0    ",
+"   0000   0  0    ",
+"         0   0    ",
+"        0   0     ",
+"       0   0      ",
+"      0   0       ",
+"      0000        ",
+"                  ",
+"      0000        ",
+"      0  0        ",
+"      0  0        ",
+"      0000        ",
+"                  "
+};



More information about the Xword-commits mailing list