Tk Source Code

Check-in [3fadeb90]
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 bug [c2c5bdb4aa]: segfault when opening colorpicker
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 3fadeb90c39fc30e369f460b1c84a2d16a08967ffab2314ea6cd9eda175d8bc7
User & Date: culler 2018-08-18 21:17:04
References
2018-08-18
21:19 Closed ticket [c2c5bdb4]: Opening a color picker segfaults on macOS plus 5 other changes artifact: 7a4c7681 user: marc_culler
Context
2018-08-21
19:06
Fix [66db98f30d] regarding error messages spit by messageboxes in the test suite, while still not regress as described in [98dce84781] (yes and no answers were swapped) check-in: 854a060c user: fvogel tags: trunk
2018-08-19
14:14
merge trunk check-in: fc67d206 user: fvogel tags: tip-507
14:12
merge trunk check-in: d222f03a user: fvogel tags: tip-510
13:49
merge trunk (leaving out any changes in generic/tkText* however) check-in: 06b9d56a user: fvogel tags: revised_text, tip-466
2018-08-18
21:17
Fix bug [c2c5bdb4aa]: segfault when opening colorpicker check-in: 3fadeb90 user: culler tags: trunk
21:15
Fix bug [c2c5bdb4aa]: segfault when opening colorpicker check-in: 6f994d29 user: culler tags: core-8-6-branch
2018-08-15
16:22
Fix [98dce84781]: yesno messageBoxes on macOS return wrong values check-in: b2160d49 user: fvogel tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXWm.c.

232
233
234
235
236
237
238

239
240
241
242
243

244
245
246
247
248
249
250
#endif

- (NSSize)windowWillResize:(NSWindow *)sender
                    toSize:(NSSize)frameSize
{
    NSRect currentFrame = [sender frame];
    TkWindow *winPtr = TkMacOSXGetTkWindow(sender);

    if (winPtr->wmInfoPtr->flags & WM_WIDTH_NOT_RESIZABLE) {
	frameSize.width = currentFrame.size.width;
    }
    if (winPtr->wmInfoPtr->flags & WM_HEIGHT_NOT_RESIZABLE) {
	frameSize.height = currentFrame.size.height;

    }
    return frameSize;
}
@end

#pragma mark -







>
|
|
|
|
|
>







232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#endif

- (NSSize)windowWillResize:(NSWindow *)sender
                    toSize:(NSSize)frameSize
{
    NSRect currentFrame = [sender frame];
    TkWindow *winPtr = TkMacOSXGetTkWindow(sender);
    if (winPtr) {
	if (winPtr->wmInfoPtr->flags & WM_WIDTH_NOT_RESIZABLE) {
	    frameSize.width = currentFrame.size.width;
	}
	if (winPtr->wmInfoPtr->flags & WM_HEIGHT_NOT_RESIZABLE) {
	    frameSize.height = currentFrame.size.height;
	}
    }
    return frameSize;
}
@end

#pragma mark -