summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-23 14:34:49 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-23 14:34:49 (GMT)
commitd829e9e8e319dfb7f6ac04c4b4b4c25f544064c0 (patch)
tree8aaa4b76c8337b8206caad87be89a70c52f654db /Mac/Lib
parentf79cb2db3eae59f80e8031d45376dc5f48d2af04 (diff)
downloadcpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.zip
cpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.tar.gz
cpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.tar.bz2
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/FrameWork.py14
-rw-r--r--Mac/Lib/test/tscrollwin.py2
2 files changed, 8 insertions, 8 deletions
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index 2d75965..733e94e 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -753,13 +753,13 @@ class Window:
def do_resize(self, width, height, window):
l, t, r, b = self.wid.GetWindowPort().portRect # jvr, forGrowIcon
self.SetPort() # jvr
- InvalRect((r - SCROLLBARWIDTH + 1, b - SCROLLBARWIDTH + 1, r, b)) # jvr
+ InvalWindowRect((r - SCROLLBARWIDTH + 1, b - SCROLLBARWIDTH + 1, r, b)) # jvr
window.SizeWindow(width, height, 1) # changed updateFlag to true jvr
self.do_postresize(width, height, window)
def do_postresize(self, width, height, window):
SetPort(window)
- InvalRect(window.GetWindowPort().portRect)
+ InvalWindowRect(window.GetWindowPort().portRect)
def do_inContent(self, partcode, window, event):
#
@@ -853,12 +853,12 @@ class ScrolledWindow(ControlsWindow):
rect = x0-1, y1-(SCROLLBARWIDTH-1), x1-(SCROLLBARWIDTH-2), y1+1
self.barx = NewControl(self.wid, rect, "", 1, vx, 0, 32767, 16, 0)
if not self.barx_enabled: self.barx.HiliteControl(255)
-## InvalRect(rect)
+## InvalWindowRect(rect)
if wanty:
rect = x1-(SCROLLBARWIDTH-1), y0-1, x1+1, y1-(SCROLLBARWIDTH-2)
self.bary = NewControl(self.wid, rect, "", 1, vy, 0, 32767, 16, 0)
if not self.bary_enabled: self.bary.HiliteControl(255)
-## InvalRect(rect)
+## InvalWindowRect(rect)
def do_postclose(self):
self.barx = self.bary = None
@@ -893,11 +893,11 @@ class ScrolledWindow(ControlsWindow):
self.bary.SizeControl(SCROLLBARWIDTH, (b-t)-(SCROLLBARWIDTH-3)) # jvr
if self.barx:
self.barx.ShowControl() # jvr
- ValidRect((l, b - SCROLLBARWIDTH + 1, r - SCROLLBARWIDTH + 2, b)) # jvr
+ ValidWindowRect((l, b - SCROLLBARWIDTH + 1, r - SCROLLBARWIDTH + 2, b)) # jvr
if self.bary:
self.bary.ShowControl() # jvr
- ValidRect((r - SCROLLBARWIDTH + 1, t, r, b - SCROLLBARWIDTH + 2)) # jvr
- InvalRect((r - SCROLLBARWIDTH + 1, b - SCROLLBARWIDTH + 1, r, b)) # jvr, growicon
+ ValidWindowRect((r - SCROLLBARWIDTH + 1, t, r, b - SCROLLBARWIDTH + 2)) # jvr
+ InvalWindowRect((r - SCROLLBARWIDTH + 1, b - SCROLLBARWIDTH + 1, r, b)) # jvr, growicon
def do_rawcontrolhit(self, window, control, pcode, local, event):
diff --git a/Mac/Lib/test/tscrollwin.py b/Mac/Lib/test/tscrollwin.py
index 40e9d67..d91f6b9 100644
--- a/Mac/Lib/test/tscrollwin.py
+++ b/Mac/Lib/test/tscrollwin.py
@@ -47,7 +47,7 @@ class MyWindow(ScrolledWindow):
self.vy = value
else:
self.vy = self.vy + delta
- Win.InvalRect(self.ourrect)
+ Win.InvalWindowRect(self.ourrect)
def do_update(self, wid, event):
Qd.EraseRect(self.ourrect)