]> granicus.if.org Git - python/commitdiff
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 23 Jan 2001 14:56:31 +0000 (14:56 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 23 Jan 2001 14:56:31 +0000 (14:56 +0000)
Mac/Unsupported/twit/mac_widgets.py
Mac/Unsupported/twit/mactwit_mod.py
Mac/Unsupported/twit/mactwit_stack.py

index 569214f672793cbf6f34ed93d4d46d0a2206a97d..d52748bc23ca22ccdea6a1bfc656c79ac16f48d2 100644 (file)
@@ -80,7 +80,7 @@ class MT_TextWidget:
                                except ValueError:
                                        break
                        self.line_index.append(len(data))
-               Win.InvalRect(self.rect)
+               self.wid.InvalWindowRect(self.rect)
                self.ted.TESetSelect(0,0)
                self.ted.TECalText()
                self.ted.TESelView()
@@ -192,7 +192,7 @@ class MT_IconTextWidget(MT_TextWidget):
        def setbreaks(self, list):
                self.breakpointlist = list[:]
                Qd.SetPort(self.wid)
-               Win.InvalRect(self.iconrect)
+               self.wid.InvalWindowRect(self.iconrect)
                
        def setcurline(self, line, pic=PIC_CURRENT):
                self.curline = line
@@ -214,7 +214,7 @@ class MT_IconTextWidget(MT_TextWidget):
                
        def setscrollbars(self):
                MT_TextWidget.setscrollbars(self)
-               Win.InvalRect(self.iconrect)
+               self.wid.InvalWindowRect(self.iconrect)
                                
        def update(self, rgn):
                MT_TextWidget.update(self, rgn)
@@ -268,7 +268,7 @@ class MT_IndexList:
                        for y in range(len(column)):
                                self.list.LSetCell(column[y], (x, y))
                self.list.LSetDrawingMode(1)
-               Win.InvalRect(self.rect)
+               self.wid.InvalWindowRect(self.rect)
 
        def deselectall(self):
                while 1:
index 8c54480d6f2770dcbe6258c2d22601125aaa4e1a..d4ce17d88911f6fa4f01ae66a4d44ff21116612b 100644 (file)
@@ -94,7 +94,7 @@ class ModuleBrowser(FrameWork.DialogWindow, TwitCore.ModuleBrowser):
                
        def force_redraw(self):
                Qd.SetPort(self.wid)
-               Win.InvalRgn(self.wid.GetWindowPort().visRgn)
+               self.wid.InvalWindowRgn(self.wid.GetWindowPort().visRgn)
                
        def do_activate(self, activate, event):
                self.modules.activate(activate)
index e38fec3e20f8fa384c05ef0318400b2a722cd416..cba6b1482a5cf546ecf92717d9199f0b0d14f9a6 100644 (file)
@@ -144,7 +144,7 @@ class StackBrowser(FrameWork.DialogWindow, TwitCore.StackBrowser):
 
        def force_redraw(self):
                Qd.SetPort(self.wid)
-               Win.InvalRgn(self.wid.GetWindowPort().visRgn)
+               self.wid.InvalWindowRgn(self.wid.GetWindowPort().visRgn)
                
        def do_activate(self, activate, event):
                self.stack.activate(activate)