forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-110950: add upstream fix to macOS installer
- Loading branch information
1 parent
cb1bf89
commit 2cae8a5
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From https://core.tcl-lang.org/tk/info/ed7cfbac8db11aa0 | ||
|
||
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c | ||
index 71d7c3385..e6a68356c 100644 | ||
--- a/macosx/tkMacOSXInit.c | ||
+++ b/macosx/tkMacOSXInit.c | ||
@@ -128,6 +128,16 @@ static int TkMacOSXGetAppPathCmd(ClientData cd, Tcl_Interp *ip, | ||
observe(NSApplicationDidChangeScreenParametersNotification, displayChanged:); | ||
observe(NSTextInputContextKeyboardSelectionDidChangeNotification, keyboardChanged:); | ||
#undef observe | ||
+} | ||
+ | ||
+ | ||
+/* | ||
+ * Fix for 10b38a7a7c. | ||
+ */ | ||
+ | ||
+- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app | ||
+{ | ||
+ return YES; | ||
} | ||
|
||
-(void)applicationWillFinishLaunching:(NSNotification *)aNotification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/macOS/2023-10-18-17-26-36.gh-issue-110950.sonoma.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Update macOS installer to include an upstream Tcl/Tk fix for the | ||
``Secure coding is not enabled for restorable state!`` warning | ||
encountered in Tkinter on macOS 14 Sonoma. |