summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tkBitmap.c4
-rw-r--r--generic/tkEvent.c2
-rw-r--r--generic/tkImgPhoto.c2
-rw-r--r--generic/tkObj.c4
-rw-r--r--generic/tkPanedWindow.c2
-rw-r--r--generic/tkTextBTree.c2
-rw-r--r--library/demos/puzzle.tcl2
-rw-r--r--macosx/README2
-rw-r--r--macosx/tkMacOSXColor.c2
-rw-r--r--macosx/tkMacOSXInit.c4
-rw-r--r--macosx/tkMacOSXMenu.c2
-rw-r--r--macosx/tkMacOSXMouseEvent.c2
-rw-r--r--macosx/tkMacOSXNotify.c2
-rw-r--r--macosx/tkMacOSXWindowEvent.c4
-rw-r--r--macosx/tkMacOSXWm.c2
-rw-r--r--macosx/ttkMacOSXTheme.c2
-rw-r--r--unix/tkUnixDialog.c2
-rw-r--r--win/tkWinDialog.c4
-rw-r--r--win/tkWinWm.c2
19 files changed, 24 insertions, 24 deletions
diff --git a/generic/tkBitmap.c b/generic/tkBitmap.c
index ccc97a4..55317de 100644
--- a/generic/tkBitmap.c
+++ b/generic/tkBitmap.c
@@ -1014,7 +1014,7 @@ BitmapInit(
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
/*
- * First initialize the data in the ThreadSpecificData strucuture, if
+ * First initialize the data in the ThreadSpecificData structure, if
* needed.
*/
@@ -1169,7 +1169,7 @@ TkDebugBitmap(
*
* TkGetBitmapPredefTable --
*
- * This function is used by tkMacBitmap.c to access the thread-specific
+ * This function is used by tkMacOSXBitmap.c to access the thread-specific
* predefBitmap table that maps from the names of the predefined bitmaps
* to data associated with those bitmaps. It is required because the
* table is allocated in thread-local storage and is not visible outside
diff --git a/generic/tkEvent.c b/generic/tkEvent.c
index 456b86d..9c3b1b3 100644
--- a/generic/tkEvent.c
+++ b/generic/tkEvent.c
@@ -1992,7 +1992,7 @@ TkDeleteThreadExitHandler(
* TkFinalize --
*
* Runs our private exit handlers and removes itself from Tcl. This is
- * benificial should we want to protect from dangling pointers should the
+ * beneficial should we want to protect from dangling pointers should the
* Tk shared library be unloaded prior to Tcl which can happen on windows
* should the process be forcefully exiting from an exception handler.
*
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index d385a7c..3d22c63 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -3025,7 +3025,7 @@ Tk_PhotoPutBlock(
if (alphaOffset) {
/*
* This block is grossly inefficient. For each row in the image, it
- * finds each continguous string of nontransparent pixels, then marks
+ * finds each contiguous string of nontransparent pixels, then marks
* those areas as valid in the validRegion mask. This makes drawing
* very efficient, because of the way we use X: we just say, here's
* your mask, and here's your data. We need not worry about the
diff --git a/generic/tkObj.c b/generic/tkObj.c
index 1552d11..0abf534 100644
--- a/generic/tkObj.c
+++ b/generic/tkObj.c
@@ -975,8 +975,8 @@ FreeWindowInternalRep(
*
* TkNewWindowObj --
*
- * This function allocates a new Tcl_Obj that refers to a particular to a
- * particular Tk window.
+ * This function allocates a new Tcl_Obj that refers to a particular
+ * Tk window.
*
* Results:
* A standard Tcl object reference, with refcount 0.
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 44afb6e..5f542d0 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -410,7 +410,7 @@ Tk_PanedWindowObjCmd(
/*
* The first time this function is invoked, the option tables will be
* NULL. We then create the option tables from the templates and store
- * a pointer to the tables as the command's clinical so we'll have
+ * a pointer to the tables as the command's clientData so we'll have
* easy access to it in the future.
*/
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c
index 1b65cbc..533f1bf 100644
--- a/generic/tkTextBTree.c
+++ b/generic/tkTextBTree.c
@@ -1898,7 +1898,7 @@ TkBTreePreviousLine(
* height of the given line).
*
* Since the last line of text (the artificial one) has zero height by
- * defintion, calling this with the last line will return the total
+ * definition, calling this with the last line will return the total
* number of pixels in the widget.
*
* Results:
diff --git a/library/demos/puzzle.tcl b/library/demos/puzzle.tcl
index eebe87a..f06de5d 100644
--- a/library/demos/puzzle.tcl
+++ b/library/demos/puzzle.tcl
@@ -11,7 +11,7 @@ package require Tk
# puzzleSwitch --
# This procedure is invoked when the user clicks on a particular button;
-# if the button is next to the empty space, it moves the button into th
+# if the button is next to the empty space, it moves the button into the
# empty space.
proc puzzleSwitch {w num} {
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
diff --git a/unix/tkUnixDialog.c b/unix/tkUnixDialog.c
index afe443f..a149610 100644
--- a/unix/tkUnixDialog.c
+++ b/unix/tkUnixDialog.c
@@ -166,7 +166,7 @@ Tk_GetSaveFileObjCmd(
* See user documentation.
*
* Side effects:
- * None. The MessageBox window will be destroy before this procedure
+ * None. The MessageBox window will be destroyed before this procedure
* returns.
*
*----------------------------------------------------------------------
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 176ba88..da13e48 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -1900,7 +1900,7 @@ GetFileName(
*
* OFNHookProc --
*
- * Dialog box hook function. This is used to sets the "tk_dialog"
+ * Dialog box hook function. This is used to set the "tk_dialog"
* variable for test/debugging when the dialog is ready to receive
* messages. When multiple file selection is enabled this function
* is used to process the list of names.
@@ -2779,7 +2779,7 @@ ChooseDirectoryValidateProc(
* See user documentation.
*
* Side effects:
- * None. The MessageBox window will be destroy before this function
+ * None. The MessageBox window will be destroyed before this function
* returns.
*
*----------------------------------------------------------------------
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 9495f7d..80bdc75 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -131,7 +131,7 @@ typedef struct {
} ICONDIR, *LPICONDIR;
/*
- * A pointer to one of these strucutures is associated with each toplevel.
+ * A pointer to one of these structures is associated with each toplevel.
* This allows us to free up all memory associated with icon resources when a
* window is deleted or if the window's icon is changed. They are simply
* reference counted according to: