[Xword-commits] r87 - trunk

btb at garage.maemo.org btb at garage.maemo.org
Tue May 20 06:24:00 EEST 2008


Author: btb
Date: 2008-05-20 06:23:52 +0300 (Tue, 20 May 2008)
New Revision: 87

Modified:
   trunk/xword
Log:
Don't use ToolButton since we aren't in a ToolBar


Modified: trunk/xword
===================================================================
--- trunk/xword	2008-05-17 16:15:19 UTC (rev 86)
+++ trunk/xword	2008-05-20 03:23:52 UTC (rev 87)
@@ -1965,10 +1965,11 @@
             y = 0
             for item in col:
                 if len(item) == 1:
-                    button = gtk.ToolButton(None,item)
+                    button = gtk.Button(item)
                 else:
-                    button = gtk.ToolButton(self.load_icon(
-                             HOME_PATH + '/' + item + '.xpm'),None)
+                    button = gtk.Button()
+                    button.set_image(self.load_icon(
+                             HOME_PATH + '/' + item + '.xpm'))
 
                 button.connect('clicked',self.letterbox_event,item)
                 table.attach(button, x, x+1, y, y+1)



More information about the Xword-commits mailing list