[Xword-commits] r94 - trunk

btb at garage.maemo.org btb at garage.maemo.org
Tue May 20 07:56:09 EEST 2008


Author: btb
Date: 2008-05-20 07:56:08 +0300 (Tue, 20 May 2008)
New Revision: 94

Modified:
   trunk/xword
Log:
switch back to ToolButtons until style problems can be fixed


Modified: trunk/xword
===================================================================
--- trunk/xword	2008-05-20 04:22:34 UTC (rev 93)
+++ trunk/xword	2008-05-20 04:56:08 UTC (rev 94)
@@ -1971,14 +1971,13 @@
             y = 0
             for item in col:
                 if len(item) == 1:
-                    button = gtk.Button(item)
+                    button = gtk.ToolButton(None, item)
                 else:
-                    button = gtk.Button()
-                    button.set_image(self.load_icon(
-                             HOME_PATH + os.sep + item + '.xpm'))
+                    button = gtk.ToolButton(self.load_icon(
+                             HOME_PATH + os.sep + item + '.xpm'), None)
 
-                button.set_relief(gtk.RELIEF_NONE)
-                button.set_focus_on_click(False)
+                #button.set_relief(gtk.RELIEF_NONE)
+                #button.set_focus_on_click(False)
                 button.connect('clicked',self.letterbox_event,item)
                 table.attach(button, x, x+1, y, y+1)
                 y += 1



More information about the Xword-commits mailing list