Browse code

I wonder if there's a better solution?

From: Marius Gedminas <marius@gedmin.as>

Jose.R.Fonseca authored on 13/07/2008 03:21:15
Showing 1 changed files

  • xdot.py index ebc8566..a0cbbec 100755
... ...
@@ -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