Tk Source Code

Check-in [8b7f6ac7]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix for crash in deleted toplevels when not removed from Cocoa window menu; thanks to Marc Culler for patch
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8b7f6ac782d632ba1a83d8b3ecfc79c10a90c92c
User & Date: kevin_walzer 2015-03-06 02:44:38
Context
2015-03-06
12:51
merge mark check-in: b16d00d5 user: dgp tags: trunk
02:44
Fix for crash in deleted toplevels when not removed from Cocoa window menu; thanks to Marc Culler for patch check-in: 8b7f6ac7 user: kevin_walzer tags: trunk
2015-03-05
15:57
Merge mark check-in: be999214 user: kevin_walzer tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXWm.c.

780
781
782
783
784
785
786

787
788
789
790
791
792
793
     * own their portPtr's.
     */

    NSWindow *window = wmPtr->window;

    if (window && !Tk_IsEmbedded(winPtr) ) {
	[[window parentWindow] removeChildWindow:window];

	[window close];
	TkMacOSXUnregisterMacWindow(window);
	if (winPtr->window) {
	    ((MacDrawable *) winPtr->window)->view = nil;
	}
	TkMacOSXMakeCollectableAndRelease(wmPtr->window);
    }






>







780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
     * own their portPtr's.
     */

    NSWindow *window = wmPtr->window;

    if (window && !Tk_IsEmbedded(winPtr) ) {
	[[window parentWindow] removeChildWindow:window];
	[window setExcludedFromWindowsMenu:YES];
	[window close];
	TkMacOSXUnregisterMacWindow(window);
	if (winPtr->window) {
	    ((MacDrawable *) winPtr->window)->view = nil;
	}
	TkMacOSXMakeCollectableAndRelease(wmPtr->window);
    }