From f8e0440984fd76b924ce69b6b049d4333088933b Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 16 Feb 2024 15:16:01 +0000 Subject: Fix [82d5a93a46]: 8.6 Documentation/comment typo fixes --- doc/FindPhoto.3 | 2 +- generic/tkFocus.c | 2 +- generic/tkImgPhInstance.c | 2 +- generic/tkIntXlibDecls.h | 2 +- generic/tkTextBTree.c | 2 +- generic/tkTextDisp.c | 2 +- generic/tkTextMark.c | 4 ++-- macosx/README | 4 ++-- macosx/tkMacOSXBitmap.c | 2 +- macosx/tkMacOSXImage.c | 2 +- tests/textIndex.test | 4 ++-- win/tkWinDialog.c | 10 +++++----- win/tkWinDraw.c | 2 +- win/tkWinWm.c | 2 +- 14 files changed, 21 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 9bf31d4..6f17b76 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 a6910da..6c1631b 100644 --- a/generic/tkImgPhInstance.c +++ b/generic/tkImgPhInstance.c @@ -709,7 +709,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/tkIntXlibDecls.h b/generic/tkIntXlibDecls.h index 586d625..4c1d4ac 100644 --- a/generic/tkIntXlibDecls.h +++ b/generic/tkIntXlibDecls.h @@ -24,7 +24,7 @@ #endif /* Some (older) versions of X11/Xutil.h have a wrong signature of those - two functions, so move them out of the way temporarly. */ + two functions, so move them out of the way temporarily. */ #define XOffsetRegion _XOffsetRegion #define XUnionRegion _XUnionRegion #include "X11/Xutil.h" diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c index 1c9cc98..88924e4 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 b23c6f2..b34a255 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -291,7 +291,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 f77e6b4..15eb035 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 db51db2..af6a65e 100644 --- a/macosx/README +++ b/macosx/README @@ -641,7 +641,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 @@ -650,7 +650,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 f9827c9..54b6c7e 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 55cb99e..368a3ed 100644 --- a/macosx/tkMacOSXImage.c +++ b/macosx/tkMacOSXImage.c @@ -420,7 +420,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/tests/textIndex.test b/tests/textIndex.test index 558a9aa..06c98be 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 4aa88b1..5907a68 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -938,7 +938,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. @@ -965,16 +965,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 8fb6a84..d0df3ec 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 98c699e..3651040 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -8592,7 +8592,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: -- cgit v0.12