summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/FindPhoto.32
-rw-r--r--generic/tkFocus.c2
-rw-r--r--generic/tkImgPhInstance.c2
-rw-r--r--generic/tkTextBTree.c2
-rw-r--r--generic/tkTextDisp.c2
-rw-r--r--generic/tkTextMark.c4
-rw-r--r--macosx/README4
-rw-r--r--macosx/tkMacOSXBitmap.c2
-rw-r--r--macosx/tkMacOSXImage.c2
-rw-r--r--macosx/tkMacOSXPrivate.h1
-rw-r--r--tests/textIndex.test4
-rw-r--r--win/tkWinDialog.c10
-rw-r--r--win/tkWinDraw.c2
-rw-r--r--win/tkWinWm.c2
14 files changed, 20 insertions, 21 deletions
diff --git a/doc/FindPhoto.3 b/doc/FindPhoto.3
index dc218bf..8b28478 100644
--- a/doc/FindPhoto.3
+++ b/doc/FindPhoto.3
@@ -264,7 +264,7 @@ data (e.g. separate planes for the red, green, blue and alpha
channels). Unfortunately, the implementation fails to hold this
promise. The problem is that the \fIpixelSize\fR field is
(incorrectly) used to determine whether the image has an alpha channel.
-Currently, if the offset for the alpha channel is greater or equal than
+Currently, if the offset for the alpha channel is greater than or equal to
\fIpixelSize\fR, \fBtk_PhotoPutblock\fR assumes no alpha data is
present and makes the image fully opaque. This means that for layouts
where the channels are separate (or any other exotic layout where
diff --git a/generic/tkFocus.c b/generic/tkFocus.c
index 6477373..4438f1a 100644
--- a/generic/tkFocus.c
+++ b/generic/tkFocus.c
@@ -1049,7 +1049,7 @@ FindDisplayFocusInfo(
* None.
*
* Side effects:
- * This mainPtr should no long access focus information.
+ * This mainPtr should no longer access focus information.
*
*----------------------------------------------------------------------
*/
diff --git a/generic/tkImgPhInstance.c b/generic/tkImgPhInstance.c
index f498d95..c669b41 100644
--- a/generic/tkImgPhInstance.c
+++ b/generic/tkImgPhInstance.c
@@ -716,7 +716,7 @@ TkImgPhotoDisplay(
Tk_DeleteErrorHandler(handler);
} else {
/*
- * modelPtr->region describes which parts of the image contain valid
+ * modelPtr->validRegion describes which parts of the image contain valid
* data. We set this region as the clip mask for the gc, setting its
* origin appropriately, and use it when drawing the image.
*/
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c
index 5fcb163..fc55937 100644
--- a/generic/tkTextBTree.c
+++ b/generic/tkTextBTree.c
@@ -614,7 +614,7 @@ static void
AdjustStartEndRefs(
BTree *treePtr, /* The entire B-tree. */
TkText *textPtr, /* The text widget for which we want to adjust
- * it's start and end cache. */
+ * its start and end cache. */
int action) /* Action to perform. */
{
if (action & TEXT_REMOVE_REFS) {
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 2b6a1fe..b7ab109 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -289,7 +289,7 @@ typedef struct DLine {
* TOP_LINE - Non-zero means that this was the top line in
* in the window the last time that the window
* was laid out. This is important because a line
- * may be displayed differently if its at the top
+ * may be displayed differently if it's at the top
* or bottom than if it's in the middle
* (e.g. beveled edges aren't displayed for
* middle lines if the adjacent line has a
diff --git a/generic/tkTextMark.c b/generic/tkTextMark.c
index ca3cba0..b25e4dd 100644
--- a/generic/tkTextMark.c
+++ b/generic/tkTextMark.c
@@ -411,10 +411,10 @@ TkTextMarkSegToIndex(
*
* Results:
* The return value is TCL_OK if "name" exists as a mark in the text
- * widget and is located within its -starline/-endline range. In this
+ * widget and is located within its -startline/-endline range. In this
* case *indexPtr is filled in with the next segment who is after the
* mark whose size is non-zero. TCL_ERROR is returned if the mark
- * doesn't exist in the text widget, or if it is out of its -starline/
+ * doesn't exist in the text widget, or if it is out of its -startline/
* -endline range. In this latter case *indexPtr still contains valid
* information, in particular TkTextMarkNameToIndex called with the
* "insert" or "current" mark name may return TCL_ERROR, but *indexPtr
diff --git a/macosx/README b/macosx/README
index 43f86ad..64be140 100644
--- a/macosx/README
+++ b/macosx/README
@@ -638,7 +638,7 @@ platforms, and the fix ultimately required changes in the generic Tk
implementation (documented in the comments in the DisplayText
function).
-The Text widget attempts to improve perfomance when scrolling by
+The Text widget attempts to improve performance when scrolling by
minimizing the number of text lines which need to be redisplayed. It
does this by calling the platform-specific TkScrollWindow function
which uses a low-level routine to map one rectangle of the window to
@@ -647,7 +647,7 @@ then used by the Text widget's DisplayText function to determine which
text lines need to be redrawn. On the unix and win platforms, this
damage region includes bounding rectangles for all embedded windows
inside the Text widget. The way that this works is system dependent.
-On unix, the low level scrolling is done by XCopyRegion, which
+On unix, the low level scrolling is done by XCopyArea, which
generates a GraphicsExpose event for each embedded window. These
GraphicsExposed events are processsed within TkScrollWindow, using a
special handler which adds the bounding rectangle of each subwindow to
diff --git a/macosx/tkMacOSXBitmap.c b/macosx/tkMacOSXBitmap.c
index b1fbd17..39fd602 100644
--- a/macosx/tkMacOSXBitmap.c
+++ b/macosx/tkMacOSXBitmap.c
@@ -24,7 +24,7 @@ typedef struct {
} BuiltInIcon;
/*
- * This array mapps a string name to the supported builtin icons
+ * This array maps a string name to the supported builtin icons
* on the Macintosh.
*/
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c
index 10e8116..726d8b9 100644
--- a/macosx/tkMacOSXImage.c
+++ b/macosx/tkMacOSXImage.c
@@ -419,7 +419,7 @@ XCreateImage(
ximage->bitmap_pad = bitmap_pad;
} else {
/*
- * Use 16 byte alignment for best Quartz perfomance.
+ * Use 16 byte alignment for best Quartz performance.
*/
ximage->bitmap_pad = 128;
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h
index 94b76e0..51901c9 100644
--- a/macosx/tkMacOSXPrivate.h
+++ b/macosx/tkMacOSXPrivate.h
@@ -317,7 +317,6 @@ VISIBILITY_HIDDEN
NSArray *_defaultApplicationMenuItems, *_defaultWindowsMenuItems;
NSArray *_defaultHelpMenuItems, *_defaultFileMenuItems;
NSAutoreleasePool *_mainPool;
- NSThread *_backgoundLoop;
}
@property int poolLock;
@property int macOSVersion;
diff --git a/tests/textIndex.test b/tests/textIndex.test
index b4e050f..17eb3f4 100644
--- a/tests/textIndex.test
+++ b/tests/textIndex.test
@@ -987,7 +987,7 @@ test textIndex-25.1 {IndexCountBytesOrdered, bug [3f1f79abcf]} {
destroy .t2
} {}
-test textIndex-26.1 {GetIndex restricts the returned index to -starline/-endline in peers, bug [34db75c0ac]} {
+test textIndex-26.1 {GetIndex restricts the returned index to -startline/-endline in peers, bug [34db75c0ac]} {
set res {}
pack [text .t2]
.t2 insert end "line 1\nline 2\nline 3\nline 4\nline 5\nline 6\n"
@@ -998,7 +998,7 @@ test textIndex-26.1 {GetIndex restricts the returned index to -starline/-endline
destroy .t2 .p2
set res
} {2.0 2.0 2.0}
-test textIndex-26.2 {GetIndex errors out if mark, image, window, or tag is outside peer -starline/-endline, bug [34db75c0ac]} {
+test textIndex-26.2 {GetIndex errors out if mark, image, window, or tag is outside peer -startline/-endline, bug [34db75c0ac]} {
set res {}
pack [text .t2]
.t2 insert end "line 1\nline 2\nline 3\nline 4\nline 5\nline 6\n"
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 1502720..a9bf863 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -882,7 +882,7 @@ ColorDlgHookProc(
/*
*----------------------------------------------------------------------
*
- * Tk_GetOpenFileCmd --
+ * Tk_GetOpenFileObjCmd --
*
* This function implements the "open file" dialog box for the Windows
* platform. See the user documentation for details on what it does.
@@ -909,16 +909,16 @@ Tk_GetOpenFileObjCmd(
/*
*----------------------------------------------------------------------
*
- * Tk_GetSaveFileCmd --
+ * Tk_GetSaveFileObjCmd --
*
- * Same as Tk_GetOpenFileCmd but opens a "save file" dialog box
+ * Same as Tk_GetOpenFileObjCmd but opens a "save file" dialog box
* instead
*
* Results:
- * Same as Tk_GetOpenFileCmd.
+ * Same as Tk_GetOpenFileObjCmd.
*
* Side effects:
- * Same as Tk_GetOpenFileCmd.
+ * Same as Tk_GetOpenFileObjCmd.
*
*----------------------------------------------------------------------
*/
diff --git a/win/tkWinDraw.c b/win/tkWinDraw.c
index ec5b7b4..7943aa3 100644
--- a/win/tkWinDraw.c
+++ b/win/tkWinDraw.c
@@ -488,7 +488,7 @@ XCopyPlane(
*
* TkPutImage, XPutImage --
*
- * Copies a subimage from an in-memory image to a rectangle of of the
+ * Copies a subimage from an in-memory image to a rectangle of the
* specified drawable.
*
* Results:
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 9987651..16072d7 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -8516,7 +8516,7 @@ TkpWinToplevelOverrideRedirect(
*
* TkpWinToplevelDetachWindow --
*
- * This function is to be usd for changing a toplevel's wrapper or
+ * This function is to be used for changing a toplevel's wrapper or
* container.
*
* Results: