Subversion Repositories pyscrabble

Compare Revisions

Ignore whitespace Rev 44 → Rev 45

/trunk/debian/changelog
1,3 → 1,15
pyscrabble (1.6.2-8) unstable; urgency=low
 
* typeerrors.patch: Fix two cases of attempting to pass floats to
functions expecting ints:
- In the motion-notify-event callback of the chatboxes, which should
change the cursor into a hand when over a URL (LP: #923363).
- In the button-press-event callback of the buttons making up the
board, which should produce an arrow to allow tiles to be placed by
typing letters.
 
-- Magnus Holmgren <holmgren@debian.org> Sun, 29 Jan 2012 21:02:09 +0100
 
pyscrabble (1.6.2-7) unstable; urgency=low
 
* max-players.patch: Before denying a player from joining a game because
/trunk/debian/patches/series
3,3 → 3,4
serverlist_timeout.patch
hosts.patch
max-players.patch
typeerrors.patch
/trunk/debian/patches/typeerrors.patch
0,0 → 1,22
--- 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)