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: Matti Katila
Subject: [Gzz-commits] libvob/vob/buoy buoymanager.py
Date: Sat, 19 Jul 2003 08:59:41 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Branch:         
Changes by:     Matti Katila <address@hidden>   03/07/19 08:59:41

Modified files:
        vob/buoy       : buoymanager.py 

Log message:
        some cleaning. context knows manager, so manager would not have to know 
about context... XXX

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

Patches:
Index: libvob/vob/buoy/buoymanager.py
diff -u libvob/vob/buoy/buoymanager.py:1.34 libvob/vob/buoy/buoymanager.py:1.35
--- libvob/vob/buoy/buoymanager.py:1.34 Thu Jun 26 07:32:49 2003
+++ libvob/vob/buoy/buoymanager.py      Sat Jul 19 08:59:41 2003
@@ -237,10 +237,7 @@
 
        geoms = self.geometer.place(vs)
 
-        if self.context != None:
-            self.context.renderContext(vs, 0)
        for i in range(0, len(self.singles)):
-            self.context.setMainNodeIndex(i)
            self.singles[i].drawscene(vs, 
                    geoms[i][0],
                    geoms[i][1], 
@@ -282,9 +279,9 @@
        # Fall through if no link - need main node
        for i in range(0, len(self.singles)):
            if self.singles[i].mainNode.mouseClickHit(ev, self.vs, None):
-                self.context.setMainNodeIndex(i)
                 self.lastIndex = i
-
+                self.context.states.lastMain = self.singles[i].mainNode
+                
                if self.singles[i].mainNode.mouse(ev, self.vs):
                    self.replaceScene = self.vs
                    vob.AbstractUpdateManager.setNoAnimation()




reply via email to

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