Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch monterey_deprecations Excluding Merge-Ins
This is equivalent to a diff from 743531bb to 99699362
2022-09-20
| ||
03:22 | Fix [33de843084]: deprecations introduced in macOS 12. Now Tk builds on Monterey with only the scrollRect deprecation warning. check-in: eaf45e87 user: marc_culler tags: core-8-6-branch | |
2022-09-17
| ||
00:46 | merge monterey_deprecations check-in: aec9ed04 user: marc_culler tags: chavez_cgimage_drawing | |
00:18 | Replace [NSApp currentAppearance] by [NSApp effectiveAppearance], now that I know it exists. Closed-Leaf check-in: 99699362 user: marc_culler tags: monterey_deprecations | |
2022-09-15
| ||
15:19 | Add missing [pool drain]. check-in: 9379364a user: marc_culler tags: monterey_deprecations | |
2022-09-14
| ||
15:31 | Fix [d412a99152]: Aqua: Unexpected <ButtonRelease> and <Enter> events check-in: 929ba2d9 user: marc_culler tags: core-8-6-branch | |
2022-09-13
| ||
04:11 | Fix [ead70921a9]: menu accelerators can be triggered on Aqua without bindings. check-in: 3e4a7b6e user: marc_culler tags: bug-ead70921a9 | |
2022-09-12
| ||
18:19 | Fix [d412a99152]: unexpected <Enter> and <Button1-Release> events. Closed-Leaf check-in: e851e6e4 user: marc_culler tags: bug-d412a99152 | |
05:13 | Merge 8.6 check-in: e81d87c3 user: marc_culler tags: monterey_deprecations | |
2022-09-11
| ||
20:30 | merge 8.6 check-in: 5f135c79 user: dgp tags: core-8-6-13-rc | |
2022-09-10
| ||
21:11 | Merge 8.6 check-in: 848dab73 user: jan.nijtmans tags: trunk, main | |
21:10 | Fix [006403a25d]: various comment/documentation fixes check-in: 743531bb user: jan.nijtmans tags: core-8-6-branch | |
2022-09-08
| ||
10:39 | Fix [c5c3d882cc]: Need to set fill colors in goldberg.tcl check-in: d674b099 user: jan.nijtmans tags: core-8-6-branch | |
Changes to macosx/tkMacOSXBitmap.c.
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | + | * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #include "tkMacOSXPrivate.h" #include "tkMacOSXConstants.h" /* * This structure holds information about native bitmaps. */ typedef struct { const char *name; /* Name of icon. */ OSType iconType; /* OSType of icon. */ |
︙ | |||
170 171 172 173 174 175 176 | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | - - + + - | */ Pixmap TkpCreateNativeBitmap( Display *display, const void *source) /* Info about the icon to build. */ { |
︙ | |||
249 250 251 252 253 254 255 | 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | - - + - - + + | int *height) { Tcl_HashEntry *hPtr; Pixmap pixmap = None; NSString *string; NSImage *image = nil; NSSize size = { .width = builtInIconSize, .height = builtInIconSize }; |
︙ | |||
308 309 310 311 312 313 314 315 316 | 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 | + + + + + - - + + - | } } if (image) { *width = size.width; *height = size.height; pixmap = PixmapFromImage(display, image, NSSizeToCGSize(size)); } else if (name) { /* * As a last resort, try to interpret the name as an OSType. * It would probably be better to just return None at this * point. */ OSType iconType; if (OSTypeFromString(name, &iconType) == TCL_OK) { |
︙ |
Changes to macosx/tkMacOSXColor.c.
︙ | |||
27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | + | static int pressedButtonTextIndex; static Bool useFakeAccentColor = NO; static SystemColorDatum **systemColorIndex; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 static NSAppearance *lightAqua = nil; static NSAppearance *darkAqua = nil; #endif static NSColorSpace* sRGB = NULL; static const CGFloat WINDOWBACKGROUND[4] = {236.0 / 255, 236.0 / 255, 236.0 / 255, 1.0}; void initColorTable() { NSAutoreleasePool *pool = [NSAutoreleasePool new]; |
︙ | |||
413 414 415 416 417 418 419 420 421 422 423 424 425 426 | 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 | + | * so it needs its own pool. */ NSAutoreleasePool *pool = [NSAutoreleasePool new]; if (entry->type == HIBrush) { OSStatus err = ChkErr(HIThemeBrushCreateCGColor, entry->value, c); [pool drain]; return err == noErr; } GetRGBA(entry, pixel, rgba); *c = CGColorCreate(sRGB.CGColorSpace, rgba); [pool drain]; return true; } |
︙ | |||
452 453 454 455 456 457 458 | 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 | - + | NSView *view = nil; if (winPtr && winPtr->privatePtr) { view = TkMacOSXGetNSViewForDrawable((Drawable)winPtr->privatePtr); } if (view) { name = [[view effectiveAppearance] name]; } else { |
︙ | |||
626 627 628 629 630 631 632 | 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 | - - | { Display *display = NULL; TkColor *tkColPtr; XColor color; Colormap colormap = tkwin ? Tk_Colormap(tkwin) : noColormap; NSView *view = nil; static Bool initialized = NO; |
︙ | |||
658 659 660 661 662 663 664 | 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 | - - + + + + + + + + + + + - - - + + + + + | p.pixel.colortype = entry->type; p.pixel.value = entry->index; color.pixel = p.ulong; if (entry->type == semantic) { CGFloat rgba[4]; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101400 if (@available(macOS 10.14, *)) { |
︙ |
Changes to macosx/tkMacOSXDialog.c.
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | - + + + + + + + + + + + + + + + + + + + + + + + + + + | /* * tkMacOSXDialog.c -- * * Contains the Mac implementation of the common dialog boxes. * * Copyright (c) 1996-1997 Sun Microsystems, Inc. * Copyright (c) 2001-2009, Apple Inc. * Copyright (c) 2006-2009 Daniel A. Steffen <[email protected]> |
︙ | |||
298 299 300 301 302 303 304 | 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | - + - + - + - + | /* * setAllowsOtherFileTypes might have no effect; it's inherited from * the NSSavePanel, where it has the effect that it does not append an * extension. Setting the allowed file types to nil allows selecting * any file. */ |
︙ | |||
799 800 801 802 803 804 805 | 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 | - + - + | /* * On OSX > 10.11, the options are not visible by default. Ergo * allow all file types [openpanel setAllowedFileTypes:filterInfo.fileTypeExtensions[filterInfo.fileTypeIndex]]; */ |
︙ | |||
1072 1073 1074 1075 1076 1077 1078 | 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 | + - + - + | [popupButton setTarget:NSApp]; [popupButton setAction:@selector(saveFormat:)]; [accessoryView addSubview:label]; [accessoryView addSubview:popupButton]; [savepanel setAccessoryView:accessoryView]; setAllowedFileTypes(savepanel, |
︙ |
Added macosx/tkMacOSXFileTypes.c.