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

Skip to content

Commit 620e914

Browse files
committed
Blacklisted a few constants with funny definitions (and they're not important anyway: backward compatible error numbers).
1 parent 932af11 commit 620e914

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

Mac/Lib/lib-toolbox/Appearance.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,12 @@ def FOUR_CHAR_CODE(x): return x
439439
kThemeMetricSmallScrollBarWidth = 1
440440
kThemeMetricCheckBoxGlyphHeight = 2
441441
kThemeMetricRadioButtonGlyphHeight = 3
442-
appearanceBadBrushIndexErr = themeInvalidBrushErr
443-
appearanceProcessRegisteredErr = themeProcessRegisteredErr
444-
appearanceProcessNotRegisteredErr = themeProcessNotRegisteredErr
445-
appearanceBadTextColorIndexErr = themeBadTextColorErr
446-
appearanceThemeHasNoAccents = themeHasNoAccentsErr
447-
appearanceBadCursorIndexErr = themeBadCursorIndexErr
442+
# appearanceBadBrushIndexErr = themeInvalidBrushErr
443+
# appearanceProcessRegisteredErr = themeProcessRegisteredErr
444+
# appearanceProcessNotRegisteredErr = themeProcessNotRegisteredErr
445+
# appearanceBadTextColorIndexErr = themeBadTextColorErr
446+
# appearanceThemeHasNoAccents = themeHasNoAccentsErr
447+
# appearanceBadCursorIndexErr = themeBadCursorIndexErr
448448
kThemeActiveDialogBackgroundBrush = kThemeBrushDialogBackgroundActive
449449
kThemeInactiveDialogBackgroundBrush = kThemeBrushDialogBackgroundInactive
450450
kThemeActiveAlertBackgroundBrush = kThemeBrushAlertBackgroundActive

Mac/Modules/app/appscan.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ def writeinitialdefs(self):
4141
def makeblacklistnames(self):
4242
return [
4343
"GetThemeFont", # Funny stringbuffer in/out parameter, I think...
44+
# Constants with funny definitions
45+
"appearanceBadBrushIndexErr",
46+
"appearanceProcessRegisteredErr",
47+
"appearanceProcessNotRegisteredErr",
48+
"appearanceBadTextColorIndexErr",
49+
"appearanceThemeHasNoAccents",
50+
"appearanceBadCursorIndexErr",
4451
]
4552

4653
def makegreylist(self):

0 commit comments

Comments
 (0)