diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 14:34:49 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-23 14:34:49 (GMT) |
commit | d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0 (patch) | |
tree | 8aaa4b76c8337b8206caad87be89a70c52f654db /Mac/Tools/IDE/Wlists.py | |
parent | f79cb2db3eae59f80e8031d45376dc5f48d2af04 (diff) | |
download | cpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.zip cpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.tar.gz cpython-d829e9e8e319dfb7f6ac04c4b4b4c25f544064c0.tar.bz2 |
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
Diffstat (limited to 'Mac/Tools/IDE/Wlists.py')
-rw-r--r-- | Mac/Tools/IDE/Wlists.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Tools/IDE/Wlists.py b/Mac/Tools/IDE/Wlists.py index d9470a8..08853f4 100644 --- a/Mac/Tools/IDE/Wlists.py +++ b/Mac/Tools/IDE/Wlists.py @@ -57,11 +57,11 @@ class List(Wbase.SelectableWidget): def adjust(self, oldbounds): self.SetPort() if self._selected: - Win.InvalRect(Qd.InsetRect(oldbounds, -3, -3)) - Win.InvalRect(Qd.InsetRect(self._bounds, -3, -3)) + Win.InvalWindowRect(Qd.InsetRect(oldbounds, -3, -3)) + Win.InvalWindowRect(Qd.InsetRect(self._bounds, -3, -3)) else: - Win.InvalRect(oldbounds) - Win.InvalRect(self._bounds) + Win.InvalWindowRect(oldbounds) + Win.InvalWindowRect(self._bounds) if oldbounds[:2] == self._bounds[:2]: # set visRgn to empty, to prevent nasty drawing side effect of LSize() Qd.RectRgn(self._parentwindow.wid.GetWindowPort().visRgn, (0, 0, 0, 0)) @@ -359,7 +359,7 @@ class List(Wbase.SelectableWidget): self.SetPort() Qd.EraseRect((l, cb, cr, b)) self._list.LUpdate(self._parentwindow.wid.GetWindowPort().visRgn) - Win.ValidRect(bounds) + Win.ValidWindowRect(bounds) else: if self.drawingmode == 0 and self._list is not None: self._list.LSetDrawingMode(0) |