Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-11-13 19:53:08 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-11-13 19:53:08 (GMT)
commit4bada2d734bf75c980b342bbc83e80f51ced30f6 (patch)
tree9c9fe39d20f8ce559bd0375a7d554afd8219ad8e /Area.py
parent214c8be4871cea2debae9cf6dee2e67eb8ec940b (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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Area.py b/Area.py
index 5829d04..eaff84b 100644
--- a/Area.py
+++ b/Area.py
@@ -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)