Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.

This commit is contained in:
Jack Jansen 2001-01-23 14:34:49 +00:00
parent f79cb2db3e
commit d829e9e8e3
15 changed files with 48 additions and 48 deletions

View file

@ -24,7 +24,7 @@ def main():
dummy = Res.GetResource('DLOG', ID_MAIN)
except Res.Error:
try:
Res.OpenResFile("oldPICTbrowse.rsrc")
Res.FSpOpenResFile("oldPICTbrowse.rsrc", 0)
except Res.Error, arg:
EasyDialogs.Message("Cannot open PICTbrowse.rsrc: "+arg[1])
sys.exit(1)

View file

@ -194,7 +194,7 @@ class WasteWindow(ScrolledWindow):
l, t, r, b = self.ted.WEGetViewRect()
vr = (l, t, l+width-15, t+height-15)
self.ted.WESetViewRect(vr)
Win.InvalRect(vr)
Win.InvalWindowRect(vr)
ScrolledWindow.do_postresize(self, width, height, window)
def do_contentclick(self, local, modifiers, evt):
@ -290,7 +290,7 @@ class WasteWindow(ScrolledWindow):
self.ted.WESetSelection(start, end)
self.ted.WESelView()
self.ted.WEFeatureFlag(WASTEconst.weFInhibitRecal, 0)
Win.InvalRect(self.ted.WEGetViewRect())
Win.InvalWindowRect(self.ted.WEGetViewRect())
self.updatescrollbars()
self.parent.updatemenubar()

View file

@ -163,7 +163,7 @@ class WasteWindow(ScrolledWindow):
l, t, r, b = self.ted.WEGetViewRect()
vr = (l, t, l+width-15, t+height-15)
self.ted.WESetViewRect(vr)
Win.InvalRect(vr)
Win.InvalWindowRect(vr)
ScrolledWindow.do_postresize(self, width, height, window)
def do_contentclick(self, local, modifiers, evt):

View file

@ -136,7 +136,7 @@ class WasteWindow(ScrolledWindow):
l, t, r, b = self.ted.WEGetViewRect()
vr = (l, t, l+width-15, t+height-15)
self.ted.WESetViewRect(vr)
Win.InvalRect(vr)
Win.InvalWindowRect(vr)
ScrolledWindow.do_postresize(self, width, height, window)
def do_contentclick(self, local, modifiers, evt):