gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/vob/buoy buoymanager.py


From: Benja Fallenstein
Subject: [Gzz-commits] libvob/vob/buoy buoymanager.py
Date: Sun, 08 Jun 2003 08:56:22 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Benja Fallenstein <address@hidden>      03/06/08 08:56:21

Modified files:
        vob/buoy       : buoymanager.py 

Log message:
        allow geometers to handle clicks on buoys specially

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/buoy/buoymanager.py.diff?tr1=1.28&tr2=1.29&r1=text&r2=text

Patches:
Index: libvob/vob/buoy/buoymanager.py
diff -u libvob/vob/buoy/buoymanager.py:1.28 libvob/vob/buoy/buoymanager.py:1.29
--- libvob/vob/buoy/buoymanager.py:1.28 Sat Jun  7 15:15:35 2003
+++ libvob/vob/buoy/buoymanager.py      Sun Jun  8 08:56:21 2003
@@ -234,14 +234,19 @@
                    nadirCS)
 
     def mouse(self, ev):
-       if self.geometer.mouse(ev, self.vs):
+       if hasattr(self.geometer, 'mouse') and \
+               self.geometer.mouse(ev, self.vs):
            return 
        x, y = ev.getX(), ev.getY()
        cs = self.vs.getCSAt(0, x, y, None)
        for single in self.singles:
            link = single.cs.get(cs, None)
            if link != None:
-       # print "IN CS: ",cs, link
+                # print "IN CS: ",cs, link
+                if hasattr(self.geometer, 'buoyMouse') and \
+                   self.geometer.buoyMouse(self, ev, single, link):
+                    return
+                
                if ev.getID() != ev.MOUSE_CLICKED:
                    return
                single.followLink(link)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]