summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--macosx/tkMacOSXWindowEvent.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index d92ab75..cd9fde2 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -1093,7 +1093,7 @@ ConfigureRestrictProc(
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
-static char *accentNames[] = {
+static const char *const accentNames[] = {
"Graphite",
"Red",
"Orange",
@@ -1101,7 +1101,7 @@ static char *accentNames[] = {
"Green",
"Blue",
"Purple",
- "Pink",
+ "Pink"
};
- (void) viewDidChangeEffectiveAppearance
@@ -1117,7 +1117,7 @@ static char *accentNames[] = {
NSString *highlight = [[[preferences stringForKey:@"AppleHighlightColor"]
componentsSeparatedByString: @" "]
objectAtIndex:3];
- static char *defaultColor = NULL;
+ static const char *defaultColor = NULL;
if (!defaultColor) {
defaultColor = [NSApp macOSVersion] < 110000 ? "Blue" : "Multicolor";
@@ -1140,11 +1140,11 @@ static char *accentNames[] = {
snprintf(data, 256, "Appearance %s Accent %s Highlight %s",
effectiveAppearanceName.UTF8String, accentName,
highlightName);
- TkSendVirtualEvent(tkwin, "AppearanceChanged", Tcl_NewStringObj(data, -1));
+ Tk_SendVirtualEvent(tkwin, "AppearanceChanged", Tcl_NewStringObj(data, -1));
if (effectiveAppearanceName == NSAppearanceNameAqua) {
- TkSendVirtualEvent(tkwin, "LightAqua", NULL);
+ Tk_SendVirtualEvent(tkwin, "LightAqua", NULL);
} else if (effectiveAppearanceName == NSAppearanceNameDarkAqua) {
- TkSendVirtualEvent(tkwin, "DarkAqua", NULL);
+ Tk_SendVirtualEvent(tkwin, "DarkAqua", NULL);
}
}