Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43bb2a4

Browse files
committed
Replaced InvalRect and friends with the Carbon-compliant InvalWindowRect.
1 parent d829e9e commit 43bb2a4

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Mac/Unsupported/twit/mac_widgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def setcontent(self, file):
8080
except ValueError:
8181
break
8282
self.line_index.append(len(data))
83-
Win.InvalRect(self.rect)
83+
self.wid.InvalWindowRect(self.rect)
8484
self.ted.TESetSelect(0,0)
8585
self.ted.TECalText()
8686
self.ted.TESelView()
@@ -192,7 +192,7 @@ def __init__(self, wid, r):
192192
def setbreaks(self, list):
193193
self.breakpointlist = list[:]
194194
Qd.SetPort(self.wid)
195-
Win.InvalRect(self.iconrect)
195+
self.wid.InvalWindowRect(self.iconrect)
196196

197197
def setcurline(self, line, pic=PIC_CURRENT):
198198
self.curline = line
@@ -214,7 +214,7 @@ def showline(self, line):
214214

215215
def setscrollbars(self):
216216
MT_TextWidget.setscrollbars(self)
217-
Win.InvalRect(self.iconrect)
217+
self.wid.InvalWindowRect(self.iconrect)
218218

219219
def update(self, rgn):
220220
MT_TextWidget.update(self, rgn)
@@ -268,7 +268,7 @@ def setcontent(self, *content):
268268
for y in range(len(column)):
269269
self.list.LSetCell(column[y], (x, y))
270270
self.list.LSetDrawingMode(1)
271-
Win.InvalRect(self.rect)
271+
self.wid.InvalWindowRect(self.rect)
272272

273273
def deselectall(self):
274274
while 1:

Mac/Unsupported/twit/mactwit_mod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def do_rawupdate(self, window, event):
9494

9595
def force_redraw(self):
9696
Qd.SetPort(self.wid)
97-
Win.InvalRgn(self.wid.GetWindowPort().visRgn)
97+
self.wid.InvalWindowRgn(self.wid.GetWindowPort().visRgn)
9898

9999
def do_activate(self, activate, event):
100100
self.modules.activate(activate)

Mac/Unsupported/twit/mactwit_stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def do_rawupdate(self, window, event):
144144

145145
def force_redraw(self):
146146
Qd.SetPort(self.wid)
147-
Win.InvalRgn(self.wid.GetWindowPort().visRgn)
147+
self.wid.InvalWindowRgn(self.wid.GetWindowPort().visRgn)
148148

149149
def do_activate(self, activate, event):
150150
self.stack.activate(activate)

0 commit comments

Comments
 (0)