Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2010-09-29 15:07:34 (GMT)
committer Simon Schampijer <simon@schampijer.de>2010-09-29 15:07:34 (GMT)
commit02826bbce77a88ed41bc319d8215dcdc45d1c462 (patch)
treed49ca8687c1bd6a56d9fe1695fa03864c8d0a08a
parent21004e5ba178f364ca04ed49b9a2206175cb8fdc (diff)
Cast the event coordinates to integers #2291
Coordinates are given as doubles rather than integers, because some input devices such as graphics tablets have sub-pixel resolution.
-rw-r--r--src/jarabe/journal/objectchooser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jarabe/journal/objectchooser.py b/src/jarabe/journal/objectchooser.py
index 49af3e6..16e6c4b 100644
--- a/src/jarabe/journal/objectchooser.py
+++ b/src/jarabe/journal/objectchooser.py
@@ -187,7 +187,7 @@ class ChooserListView(BaseListView):
if event.window != tree_view.get_bin_window():
return False
- pos = tree_view.get_path_at_pos(event.x, event.y)
+ pos = tree_view.get_path_at_pos(int(event.x), int(event.y))
if pos is None:
return False