From: Marius Gedminas <marius@gedmin.as>
| ... | ... |
@@ -836,6 +836,8 @@ class DotWidget(gtk.DrawingArea): |
| 836 | 836 |
if self.presstime is None: |
| 837 | 837 |
# got a button release without seeing the press? |
| 838 | 838 |
return False |
| 839 |
+ # XXX instead of doing this complicated logic, shouldn't we listen |
|
| 840 |
+ # for gtk's clicked event instead? |
|
| 839 | 841 |
deltax = self.startmousex - event.x |
| 840 | 842 |
deltay = self.startmousey - event.y |
| 841 | 843 |
return (time.time() < self.presstime + click_timeout |