Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Blame | Last modification | View Log | RSS feed

--- a/pyscrabble/gtkutil.py
+++ b/pyscrabble/gtkutil.py
@@ -550,7 +550,7 @@ class TaggableTextView(gtk.TextView):
         @param event:
         '''
         
-        x,y = widget.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT, event.x, event.y)
+        x,y = widget.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT, int(event.x), int(event.y))
       
         iter = widget.get_iter_at_location(x,y)
         tags = iter.get_tags()
--- a/pyscrabble/gui/pieces.py
+++ b/pyscrabble/gui/pieces.py
@@ -379,7 +379,7 @@ class GameTile(gtk.Button, Tile):
         if arrow is not None:
             box = gtk.HBox(False, 0)
             arrow.set_size_request(10,10)
-            arrow.set_padding(0.0, 0.0)
+            arrow.set_padding(0, 0)
             box.pack_start(arrow, False, False, 0)
             self.add(box)
             self.key_press_handler = self.connect("key-press-event", self.keyPress_cb, self.direction)