diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-09-10 21:10:20 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-09-10 21:10:20 (GMT) |
commit | f6715923b8e582240ab916b3a1432af4cc1ecc56 (patch) | |
tree | 4617af91a260fbcc070645aac13b188a945e2515 /macosx | |
parent | 6b3ace837fc82f4c7474d30636b0b7ecf8aa4e44 (diff) | |
download | tk-f6715923b8e582240ab916b3a1432af4cc1ecc56.zip tk-f6715923b8e582240ab916b3a1432af4cc1ecc56.tar.gz tk-f6715923b8e582240ab916b3a1432af4cc1ecc56.tar.bz2 |
Fix [006403a25d]: various comment/documentation fixes
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/README | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXColor.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXInit.c | 4 | ||||
-rw-r--r-- | macosx/tkMacOSXMenu.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXMouseEvent.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXNotify.c | 2 | ||||
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 4 | ||||
-rw-r--r-- | macosx/tkMacOSXWm.c | 2 | ||||
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 2 |
9 files changed, 11 insertions, 11 deletions
diff --git a/macosx/README b/macosx/README index 4ed334f..db51db2 100644 --- a/macosx/README +++ b/macosx/README @@ -548,7 +548,7 @@ appropriate place to drain the main NSAutoreleasePool and replace it with a new pool. This is done by calling the method [NSApp _resetAutoreleasePool], where _resetAutoreleasePool is a method which we define for the subclass. Unfortunately, by itself this is not -sufficient for safe memory managememt because, as was made painfully +sufficient for safe memory management because, as was made painfully evident with the release of OS X 10.13, it is possible for calls to TclDoOneEvent, and hence to CheckProc, to be nested. Draining the autorelease pool in a nested call leads to crashes as objects in use diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c index 3951683..a21cafb 100644 --- a/macosx/tkMacOSXColor.c +++ b/macosx/tkMacOSXColor.c @@ -299,7 +299,7 @@ GetRGBA( /* * Prior to OSX 10.14, getComponents returns black when applied to - * windowBackGroundColor. + * windowBackgroundColor. */ if ([NSApp macOSVersion] < 101400) { diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c index d9f3d12..bf5b6de 100644 --- a/macosx/tkMacOSXInit.c +++ b/macosx/tkMacOSXInit.c @@ -415,7 +415,7 @@ TkpInit( /* * TkpInit can be called multiple times with different interpreters. But - * The application initialization should only be done onece. + * The application initialization should only be done once. */ if (!initialized) { @@ -476,7 +476,7 @@ TkpInit( * the application icon, will be delivered before the procedure meant * to to handle the AppleEvent has been defined. This is handled in * tkMacOSXHLEvents.c by scheduling a timer event to handle the - * ApplEvent later, after the required procedure has been defined. + * AppleEvent later, after the required procedure has been defined. */ [NSApp _setup:interp]; diff --git a/macosx/tkMacOSXMenu.c b/macosx/tkMacOSXMenu.c index 33f9ff9..f78861f 100644 --- a/macosx/tkMacOSXMenu.c +++ b/macosx/tkMacOSXMenu.c @@ -124,7 +124,7 @@ static int ModifierCharWidth(Tk_Font tkfont); * demo would cause the animation to stop. This was also the case for * menubuttons. * - * The TKBackground object below works around this problem, and allows a Tk + * The TKBackgroundLoop object below works around this problem, and allows a Tk * event loop to run while a menu is open. It is a subclass of NSThread which * inserts requests to call [NSApp _runBackgroundLoop] onto the queue * associated with the NSEventTrackingRunLoopMode. One of these threads gets diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c index fd9bbc1..f562a88 100644 --- a/macosx/tkMacOSXMouseEvent.c +++ b/macosx/tkMacOSXMouseEvent.c @@ -248,7 +248,7 @@ enum { } /* - * If this click will change the focus, the Tk event event should + * If this click will change the focus, the Tk event should * be sent to the toplevel which will be receiving focus rather than to * the current focus window. So reset tkEventTarget. */ diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c index 208d846..3cb6c48 100644 --- a/macosx/tkMacOSXNotify.c +++ b/macosx/tkMacOSXNotify.c @@ -341,7 +341,7 @@ TkMacOSXNotifyExitHandler( * deQueue=NO so that it will not change anything on the AppKit event * queue, because we only want the side effect that it runs drawRect. The * only times when any NSViews have the needsDisplay property set to YES - * are during execution of this function or in the addDirtyRect method + * are during execution of this function or in the addTkDirtyRect method * of TKContentView. * * The reason for running this function as an idle task is to try to diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 5769369..a806729 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -457,7 +457,7 @@ static void RefocusGrabWindow(void *data) { * being run inside of the drawRect method. If not, it may be desirable * for the display procedure to simply clear the REDRAW_PENDING flag * and return. The widget can be recorded in order to schedule a - * redraw, via and Expose event, from within drawRect. + * redraw, via an Expose event, from within drawRect. * * This is also needed for some tests, especially of the Text widget, * which record data in a global Tcl variable and assume that display @@ -1014,7 +1014,7 @@ ConfigureRestrictProc( /* * Make sure that the layer uses a contentScale that matches the - * backing scale factor of the screen. This avoids blurry text whe + * backing scale factor of the screen. This avoids blurry text when * the view is on a Retina display, as well as incorrect size when * the view is on a normal display. */ diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index df80a55..36d6bcf 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -5968,7 +5968,7 @@ WmWinTabbingId( * allows you to get or set the appearance for the NSWindow associated * with a Tk Window. The syntax is: * - * tk::unsupported::MacWindowStyle tabbingid window ?newAppearance? + * tk::unsupported::MacWindowStyle appearance window ?newAppearance? * * Allowed appearance names are "aqua", "darkaqua", and "auto". * diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index ddaa226..38e6fa3 100644 --- a/macosx/ttkMacOSXTheme.c +++ b/macosx/ttkMacOSXTheme.c @@ -236,7 +236,7 @@ static CGRect NormalizeButtonBounds( */ /* - * For systems older than 10.14, [NSColor windowBackGroundColor] generates + * For systems older than 10.14, [NSColor windowBackgroundColor] generates * garbage when called from this function. In 10.14 it works correctly, and * must be used in order to have a background color which responds to Dark * Mode. So we use this hard-wired RGBA color on the older systems which don't |