summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2020-08-15 10:37:37 (GMT)
committerculler <culler>2020-08-15 10:37:37 (GMT)
commit8688346cc826e351a4b296686b1b1c0be5712ddc (patch)
tree1fee9f39bc13349ecb8bb010b59fb52dc6ebacdd
parent8b6c8e84302179205f43165ff8e1ce15d2c8860a (diff)
downloadtk-8688346cc826e351a4b296686b1b1c0be5712ddc.zip
tk-8688346cc826e351a4b296686b1b1c0be5712ddc.tar.gz
tk-8688346cc826e351a4b296686b1b1c0be5712ddc.tar.bz2
Adjustments for 10.6
-rw-r--r--macosx/tkMacOSXWindowEvent.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index 35b1b49..8606d84 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -207,7 +207,9 @@ extern NSString *NSWindowDidOrderOffScreenNotification;
TkWindow *winPtr = TkMacOSXGetTkWindow(window);
if (winPtr) {
TKContentView *view = [window contentView];
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
[view viewDidChangeEffectiveAppearance];
+#endif
[view addTkDirtyRect:[view bounds]];
Tcl_CancelIdleCall(TkMacOSXDrawAllViews, NULL);
Tcl_DoWhenIdle(TkMacOSXDrawAllViews, NULL);
@@ -1076,6 +1078,8 @@ ConfigureRestrictProc(
* colors.
*/
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
+
static char *accentNames[] = {
"Graphite",
"Red",
@@ -1089,8 +1093,6 @@ static char *accentNames[] = {
- (void) viewDidChangeEffectiveAppearance
{
-#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400
-
Tk_Window tkwin = (Tk_Window) TkMacOSXGetTkWindow([self window]);
if (!tkwin) {
return;
@@ -1131,9 +1133,9 @@ static char *accentNames[] = {
} else if (effectiveAppearanceName == NSAppearanceNameDarkAqua) {
TkSendVirtualEvent(tkwin, "DarkAqua", NULL);
}
+}
#endif
-}
- (void)observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object