diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-11-13 19:53:08 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-11-13 19:53:08 (GMT) |
commit | 4bada2d734bf75c980b342bbc83e80f51ced30f6 (patch) | |
tree | 9c9fe39d20f8ce559bd0375a7d554afd8219ad8e /Area.py | |
parent | 214c8be4871cea2debae9cf6dee2e67eb8ec940b (diff) |
Fix bucket use with touch - SL # 4195
The coordinate x and y should be int, not float.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'Area.py')
-rw-r--r-- | Area.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -404,8 +404,8 @@ class Area(Gtk.DrawingArea): Gdk.EventType.BUTTON_PRESS, Gdk.EventType.TOUCH_UPDATE, Gdk.EventType.BUTTON_RELEASE): #, Gdk.EventType.MOTION_NOTIFY): - x = event.get_coords()[1] - y = event.get_coords()[2] + x = int(event.get_coords()[1]) + y = int(event.get_coords()[2]) seq = str(event.touch.sequence) logging.error('event x %d y %d type %s', x, y, event.type) |