8000 Import Tk 8.6.15 · python/cpython-source-deps@a526bad · GitHub
[go: up one dir, main page]

Skip to content

Commit a526bad

Browse files
committed
Import Tk 8.6.15
1 parent 1946255 commit a526bad

File tree

305 files changed

+13347
-12398
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+13347
-12398
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# README: Tk
22

3-
This is the **Tk 8.6.14** source distribution.
3+
This is the **Tk 8.6.15** source distribution.
44

55
You can get any source release of Tk from [our distribution
66
site](https://sourceforge.net/projects/tcl/files/Tcl/).

changes

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ same menu.
333333
4/12/92 (bug fix) Fixed core dump that occurred in tkError.c when
334334
removing the first error record from the error list.
335335

336-
4/15/92 (bug fix) Fixed bug in tkBind.c that prevented <KeyPress-1>
336+
4/15/92 (bug fix) Fixed bug in tkBind.c that prevented <Key-1>
337337
event specifications from being processed correctly: the "1" was
338338
treated as a button name rather than a keysym.
339339

@@ -3998,7 +3998,7 @@ into account the "-displayof" option. This problem also existed for the
39983998
command to the Mac. Also fixed "resource write" when the resource
39993999
was specified by id and already existed. (JI)
40004000

4001-
9/16/97 (bug fix) Added null bindings to <Command-KeyPress> for the
4001+
9/16/97 (bug fix) Added null bindings to <Command-Key> for the
40024002
text and entry widget on the Macintosh. This prevents unbound command
40034003
key sequences from having the character echoed to the widget. Also
40044004
fixed Cut & Copy bindings. (JI) (RJ)
@@ -5099,7 +5099,7 @@ correctly. (hobbs)
50995099
2001-08-28 (bug fix) removed 2 second 'raise' delay seen by some Unix
51005100
window managers. (hobbs, baker)
51015101

5102-
2001-09-14 (bug fix) fixed memory leaks that occured if errors were
5102+
2001-09-14 (bug fix) fixed memory leaks that occurred if errors were
51035103
thrown while initializing the channel for an image. (darley)
51045104

51055105
2001-09-20 (new feature) --enable-64bit support was added for HP 11 when
@@ -7504,7 +7504,7 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
75047504

75057505
2018-01-07 (bug)[fa8de7] Crash [ttk::checkbutton .x -variable {}] (werner)
75067506

7507-
2018-01-16 (bug)[382712] Crash in [event generate . <KeyPress>] (werner)
7507+
2018-01-16 (bug)[382712] Crash in [event generate . <Key>] (werner)
75087508

75097509
2018-01-19 (bug)[657c38] Crash in menu destroy with checkbutton entry (werner)
75107510

@@ -7540,7 +7540,7 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
75407540

75417541
2018-07-17 (bug)[1088825] fix frame-2.17,3.9,3.10 on Mac (vogel)
75427542

7543-
2018-07-27 (bug)[fabed1] GIF photo support for &q 10000 uot;deferred clear code" (vogel)
7543+
2018-07-27 (bug)[fbaed1] GIF photo support for "deferred clear code" (vogel)
75447544

75457545
2018-08-08 (feature) Modern full-screen support on Mac OSX (walzer)
75467546

@@ -7783,7 +7783,7 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
77837783

77847784
2020-07-02 (bug)[2d2459] default style for combobox (bll)
77857785

7786-
2020-07-06 (bug)[40c4bf] double free, entry-19.21 (vogel)
7786+
2020-07-06 (bug)[40e4bf] double free, entry-19.21 (vogel)
77877787

77887788
2020-07-06 (bug)[e3888d] grab & warp, bind-36.1 (vogel)
77897789

@@ -8120,7 +8120,7 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
81208120

81218121
2023-07-26 (bug)[ed9b28] Aqua: memleak in GetWidgetDemoPath (chavez)
81228122

8123-
2023-08-02 (bug)[2a3222] navigation exposed clues about masked entry
8123+
2023-08-02 (bug)[2a3222] navigation exposed clues about masked entry
81248124

81258125
2023-08-04 Update [trace] subcommands for Tcl 9 compat
81268126

@@ -8143,7 +8143,7 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
81438143

81448144
2023-10-16 (bug)[22eefb] unixWm-45.[24] (vogel)
81458145

8146-
2023-10-18 (bug)[10b38a] Silence macOS 14 warning about secure restorable state
8146+
2023-10-18 (bug)[10b38a] Silence macOS 14 warning about secure restorable state
81478147

81488148
2023-10-28 (bug)[198376] move notebook tabs to position s (rozenberg,vogel)
81498149

@@ -8184,3 +8184,47 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
81848184
2024-02-08 (bug)[57b821] see test textIndex-22.16 (vogel)
81858185

81868186
- Released 8.6.14, Feb 28, 2024 - https://core.tcl-lang.org/tk/ for details
8187+
8188+
2024-03-15 (bug)[47d4f2] Invoke binding scripts for events with detail field
8189+
NotifyInferior (leunissen, vogel)
8190+
*** POTENTIAL INCOMPATIBILITY ***
8191+
8192+
2024-03-19 (bug) [fdc0ed] Fix segfault on [focus -force] with xvfb (vogel)
8193+
8194+
2024-04-21 (bug) [ab839e] Fix [text undo] clearingdata
8195+
8196+
2024-05-01 (change) [e30699] Fix appearence of arrows in ttk widgets
8197+
(nemethi)
8198+
8199+
2024-05-03 (change) Add keycodes ISO_Group_Shift and dead_hamza (nijtmans)
8200+
8201+
2024-05-10 (change) Improve look of the classic theme (gavilan)
8202+
8203+
2024-05-11 (change) Improved focus ring for ttk (nemethi)
8204+
8205+
2024-05-13 (bug) [treeview identify] now point aware (vogel)
8206+
8207+
2024-05-29 (bug) Fix default font detection for high DPI (vogel,nemethi)
8208+
8209+
2024-06-02 (bug) Fix [ttk::combobox] covering down arrow (vogel,gavilan)
8210+
8211+
2024-06-09 (bug) [a0241c] Fix performance of image copy (vogel)
8212+
8213+
2024-06-11 (bug) [157652] Fix image read with -from option for gif/png
8214+
(vogel)
8215+
8216+
2024-06-18 (bug) [865af0] Throw error message on corrupt gif file
8217+
(obermeier)
8218+
8219+
2024-07-06 (bug) [51ece3] Fix crash on [canvas dchars] (vogel)
8220+
8221+
2024-07-22 (bug)[2d3a81] fix segfault on menubutton destroy (MS-Win only)
8222+
(oehlmann)
8223+
8224+
2024-07-31 (bug) [0d4879,089da4,f569b9] Improve focus ring for ttk widgets
8225+
(nemethi)
8226+
8227+
2024-08-28 (bug) [d82fa2] [ttk::treview] painting/clipping/scrolling of last
8228+
item (bron,nemethi,werner)
8229+
8230+
- Released 8.6.15, Sep 13, 2024 - https://core.tcl-lang.org/tk/ for details

doc/3DBorder.3

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,49 +13,43 @@ Tk_Alloc3DBorderFromObj, Tk_Get3DBorder, Tk_Get3DBorderFromObj, Tk_Draw3DRectang
1313
.SH SYNOPSIS
1414
.nf
1515
\fB#include <tk.h>\fR
16-
.sp
16+
1717
Tk_3DBorder
18-
\fBTk_Alloc3DBorderFromObj(\fIinterp, tkwin, objPtr\fB)\fR
18+
\fBTk_Alloc3DBorderFromObj\fR(\fIinterp, tkwin, objPtr\fR)
1919
.sp
2020
Tk_3DBorder
21-
\fBTk_Get3DBorder(\fIinterp, tkwin, colorName\fB)\fR
21+
\fBTk_Get3DBorder\fR(\fIinterp, tkwin, colorName\fR)
2222
.sp
2323
Tk_3DBorder
24-
\fBTk_Get3DBorderFromObj(\fItkwin, objPtr\fB)\fR
24+
\fBTk_Get3DBorderFromObj\fR(\fItkwin, objPtr\fR)
2525
.sp
26-
void
27-
\fBTk_Draw3DRectangle(\fItkwin, drawable, border, x, y, width, height, borderWidth, relief\fB)\fR
26+
\fBTk_Draw3DRectangle\fR(\fItkwin, drawable, border, x, y, width, height, borderWidth, relief\fR)
2827
.sp
29-
void
30-
\fBTk_Fill3DRectangle(\fItkwin, drawable, border, x, y, width, height, borderWidth, relief\fB)\fR
28+
\fBTk_Fill3DRectangle\fR(\fItkwin, drawable, border, x, y, width, height, borderWidth, relief\fR)
3129
.sp
32-
void
33-
\fBTk_Draw3DPolygon(\fItkwin, drawable, border, pointPtr, numPoints, polyBorderWidth, leftRelief\fB)\fR
30+
\fBTk_Draw3DPolygon\fR(\fItkwin, drawable, border, pointPtr, numPoints, polyBorderWidth, leftRelief\fR)
3431
.sp
35-
void
36-
\fBTk_Fill3DPolygon(\fItkwin, drawable, border, pointPtr, numPoints, polyBorderWidth, leftRelief\fB)\fR
32+
\fBTk_Fill3DPolygon\fR(\fItkwin, drawable, border, pointPtr, numPoints, polyBorderWidth, leftRelief\fR)
3733
.sp
38-
void
39-
\fBTk_3DVerticalBevel\fR(\fItkwin, drawable, border, x, y, width, height, leftBevel, relief\fB)\fR
34+
\fBTk_3DVerticalBevel\fR(\fItkwin, drawable, border, x, y, width, height, leftBevel, relief\fR)
4035
.sp
41-
void
42-
\fBTk_3DHorizontalBevel\fR(\fItkwin, drawable, border, x, y, width, height, leftIn, rightIn, topBevel, relief\fB)\fR
36+
\fBTk_3DHorizontalBevel\fR(\fItkwin, drawable, border, x, y, width, height, leftIn, rightIn, topBevel, relief\fR)
4337
.sp
44-
void
45-
\fBTk_SetBackgroundFromBorder(\fItkwin, border\fB)\fR
38+
\fBTk_SetBackgroundFromBorder\fR(\fItkwin, border\fR)
4639
.sp
4740
const char *
48-
\fBTk_NameOf3DBorder(\fIborder\fB)\fR
41+
\fBTk_NameOf3DBorder\fR(\fIborder\fR)
4942
.sp
5043
XColor *
51-
\fBTk_3DBorderColor(\fIborder\fB)\fR
44+
\fBTk_3DBorderColor\fR(\fIborder\fR)
5245
.sp
5346
GC *
54-
\fBTk_3DBorderGC(\fItkwin, border, which\fB)\fR
47+
\fBTk_3DBorderGC\fR(\fItkwin, border, which\fR)
5548
.sp
56-
\fBTk_Free3DBorderFromObj(\fItkwin, objPtr\fB)\fR
49+
\fBTk_Free3DBorderFromObj\fR(\fItkwin, objPtr\fR)
5750
.sp
58-
\fBTk_Free3DBorder(\fIborder\fB)\fR
51+
\fBTk_Free3DBorder\fR(\fIborder\fR)
52+
.fi
5953
.SH ARGUMENTS
6054
.AS "Tk_3DBorder" borderWidth
6155
.AP Tcl_Interp *interp in
@@ -67,7 +61,7 @@ must be the window for which the border was allocated).
6761
Pointer to value whose value describes color corresponding to
6862
background (flat areas). Illuminated edges will be brighter than
6963
this and shadowed edges will be darker than this.
70-
.AP char *colorName in
64+
.AP "const char" *colorName in
7165
Same as \fIobjPtr\fR except value is supplied as a string rather
7266
than a value.
7367
.AP Drawable drawable in
@@ -192,8 +186,8 @@ which of several three-dimensional effects is desired:
192186
\fBTK_RELIEF_RAISED\fR means that the interior of the rectangle should
193187
appear raised relative to the exterior of the rectangle, and
194188
\fBTK_RELIEF_SUNKEN\fR means that the interior should appear depressed.
195-
\fBTK_RELIEF_GROOVE\fR and \fBTK_RELIEF_RIDGE\fR mean that there should appear to be
196-
a groove or ridge around the exterior of the rectangle.
189+
\fBTK_RELIEF_GROOVE\fR and \fBTK_RELIEF_RIDGE\fR mean that there should
190+
appear to be a groove or ridge around the exterior of the rectangle.
197191
.PP
198192
\fBTk_Fill3DRectangle\fR is somewhat like \fBTk_Draw3DRectangle\fR except
199193
that it first fills the rectangular area with the background color
@@ -291,4 +285,5 @@ There should be exactly one call to \fBTk_Free3DBorderFromObj\fR or
291285
\fBTk_Free3DBorder\fR for each call to \fBTk_Alloc3DBorderFromObj\fR
292286
or \fBTk_Get3DBorder\fR.
293287
.SH KEYWORDS
294-
3D, background, border, color, depressed, illumination, value, polygon, raised, shadow, three-dimensional effect
288+
3D, background, border, color, depressed, illumination, value, polygon,
289+
raised, shadow, three-dimensional effect

doc/GetColor.3

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,27 @@ Tk_AllocColorFromObj, Tk_GetColor, Tk_GetColorFromObj, Tk_GetColorByValue, Tk_Na
1515
\fB#include <tk.h>\fR
1616
.sp
1717
XColor *
18-
\fBTk_AllocColorFromObj(\fIinterp, tkwin, objPtr\fB)\fR
18+
\fBTk_AllocColorFromObj\fR(\fIinterp, tkwin, objPtr\fR)
1919
.sp
2020
XColor *
21-
\fBTk_GetColor(\fIinterp, tkwin, name\fB)\fR
21+
\fBTk_GetColor\fR(\fIinterp, tkwin, name\fR)
2222
.sp
2323
XColor *
24-
\fBTk_GetColorFromObj(\fItkwin, objPtr\fB)\fR
24+
\fBTk_GetColorFromObj\fR(\fItkwin, objPtr\fR)
2525
.sp
2626
XColor *
27-
\fBTk_GetColorByValue(\fItkwin, prefPtr\fB)\fR
27+
\fBTk_GetColorByValue\fR(\fItkwin, prefPtr\fR)
2828
.sp
2929
const char *
30-
\fBTk_NameOfColor(\fIcolorPtr\fB)\fR
30+
\fBTk_NameOfColor\fR(\fIcolorPtr\fR)
3131
.sp
3232
GC
33-
\fBTk_GCForColor(\fIcolorPtr, drawable\fB)\fR
33+
\fBTk_GCForColor\fR(\fIcolorPtr, drawable\fR)
3434
.sp
35-
\fBTk_FreeColorFromObj(\fItkwin, objPtr\fB)\fR
35+
\fBTk_FreeColorFromObj\fR(\fItkwin, objPtr\fR)
3636
.sp
37-
\fBTk_FreeColor(\fIcolorPtr\fB)\fR
37+
\fBTk_FreeColor\fR(\fIcolorPtr\fR)
38+
.fi
3839
.SH ARGUMENTS
3940
.AS "Tcl_Interp" *colorPtr
4041
.AP Tcl_Interp *interp in
@@ -44,7 +45,7 @@ Token for window in which color will be used.
4445
.AP Tcl_Obj *objPtr in/out
4546
String value describes desired color; internal rep will be
4647
modified to cache pointer to corresponding (XColor *).
47-
.AP char *name in
48+
.AP "const char" *name in
4849
Same as \fIobjPtr\fR except description of color is passed as a string and
4950
resulting (XColor *) is not cached.
5051
.AP XColor *prefPtr in
@@ -71,6 +72,7 @@ in a particular window. The desired color is specified with a
7172
value whose string value must have one of the following forms:
7273
.TP 20
7374
\fIcolorname\fR
75+
.
7476
Any of the valid textual names for a color defined in the
7577
server's color database file, such as \fBred\fR or \fBPeachPuff\fR.
7678
.TP 20
@@ -81,6 +83,7 @@ server's color database file, such as \fBred\fR or \fBPeachPuff\fR.
8183
\fB#\fIRRRGGGBBB\fR
8284
.TP 20
8385
\fB#\fIRRRRGGGGBBBB\fR
86+
.
8487
A numeric specification of the red, green, and blue intensities
8588
to use to display the color. Each \fIR\fR, \fIG\fR, or \fIB\fR
8689
represents a single hexadecimal digit. The four forms permit

doc/GetCursor.3

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,24 @@ Tk_AllocCursorFromObj, Tk_GetCursor, Tk_GetCursorFromObj, Tk_GetCursorFromData,
1515
\fB#include <tk.h>\fR
1616
.sp
1717
Tk_Cursor
18-
\fBTk_AllocCursorFromObj(\fIinterp, tkwin, objPtr\fB)\fR
18+
\fBTk_AllocCursorFromObj\fR(\fIinterp, tkwin, objPtr\fR)
1919
.sp
2020
Tk_Cursor
21-
\fBTk_GetCursor(\fIinterp, tkwin, name\fB)\fR
21+
\fBTk_GetCursor\fR(\fIinterp, tkwin, name\fR)
2222
.sp
2323
Tk_Cursor
24-
\fBTk_GetCursorFromObj(\fItkwin, objPtr\fB)\fR
24+
\fBTk_GetCursorFromObj\fR(\fItkwin, objPtr\fR)
2525
.sp
2626
Tk_Cursor
27-
\fBTk_GetCursorFromData(\fIinterp, tkwin, source, mask, width, height, xHot, yHot, fg, bg\fB)\fR
27+
\fBTk_GetCursorFromData\fR(\fIinterp, tkwin, source, mask, width, height, xHot, yHot, fg, bg\fR)
2828
.sp
2929
const char *
30-
\fBTk_NameOfCursor(\fIdisplay, cursor\fB)\fR
30+
\fBTk_NameOfCursor\fR(\fIdisplay, cursor\fR)
3131
.sp
32-
\fBTk_FreeCursorFromObj(\fItkwin, objPtr\fB)\fR
32+
\fBTk_FreeCursorFromObj\fR(\fItkwin, objPtr\fR)
3333
.sp
34-
\fBTk_FreeCursor(\fIdisplay, cursor\fB)\fR
34+
\fBTk_FreeCursor\fR(\fIdisplay, cursor\fR)
35+
.fi
3536
.SH ARGUMENTS
3637
.AS "unsigned long" *pixelPtr
3738
.AP Tcl_Interp *interp in
@@ -41,7 +42,7 @@ Token for window in which the cursor will be used.
4142
.AP Tcl_Obj *objPtr in/out
4243
Description of cursor; see below for possible values. Internal rep will be
4344
modified to cache pointer to corresponding Tk_Cursor.
44-
.AP char *name in
45+
.AP "const char" *name in
4546
Same as \fIobjPtr\fR except description of cursor is passed as a string and
4647
resulting Tk_Cursor is not cached.
4748
.AP "const char" *source in
@@ -87,6 +88,7 @@ if \fIinterp\fR is not NULL. \fIObjPtr\fR must contain a standard Tcl
8788
list with one of the following forms:
8889
.TP
8990
\fIname\fR\0[\fIfgColor\fR\0[\fIbgColor\fR]]
91+
.
9092
\fIName\fR is the name of a cursor in the standard X cursor cursor,
9193
i.e., any of the names defined in \fBcursorcursor.h\fR, without
9294
the \fBXC_\fR. Some example values are \fBX_cursor\fR, \fBhand2\fR,
@@ -115,6 +117,7 @@ in preference to black and white cursors.
115117
.RE
116118
.TP
117119
\fB@\fIsourceName\0maskName\0fgColor\0bgColor\fR
120+
.
118121
In this form, \fIsourceName\fR and \fImaskName\fR are the names of
119122
files describing cursors for the cursor's source bits and mask.
120123
Each file must be in standard X11 cursor format.
@@ -124,12 +127,14 @@ cursor, in any of the forms acceptable to \fBTk_GetColor\fR. This
124127
form of the command will not work on Macintosh or Windows computers.
125128
.TP
126129
\fB@\fIsourceName\0fgColor\fR
130+
.
127131
This form is similar to the one above, except that the source is
128132
used as mask also. This means that the cursor's background is
129133
transparent. This form of the command will not work on Macintosh
130134
or Windows computers.
131135
.TP
132136
\fB@\fIsourceName\fR
137+
.
133138
This form only works on Windows, and will load a Windows system
134139
cursor (\fB.ani\fR or \fB.cur\fR) from the file specified in
135140
\fIsourceName\fR.
@@ -196,7 +201,7 @@ argument that was passed to \fBTk_GetCursor\fR to create the
196201
cursor. If \fIcursor\fR was created by a call to \fBTk_GetCursorFromData\fR,
197202
or by any other mechanism, then the return value is a hexadecimal string
198203
giving the X identifier for the cursor.
199-
Note: the string returned by \fBTk_NameOfCursor\fR is
204+
Note that the string returned by \fBTk_NameOfCursor\fR is
200205
only guaranteed to persist until the next call to
201206
\fBTk_NameOfCursor\fR. Also, this call is not portable except for
202207
cursors returned by \fBTk_GetCursor\fR.

doc/GetRelief.3

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ Tk_GetReliefFromObj, Tk_GetRelief, Tk_NameOfRelief \- translate between strings
1515
\fB#include <tk.h>\fR
1616
.sp
1717
int
18-
\fBTk_GetReliefFromObj(\fIinterp, objPtr, reliefPtr\fB)\fR
18+
\fBTk_GetReliefFromObj\fR(\fIinterp, objPtr, reliefPtr\fR)
1919
.sp
2020
int
21-
\fBTk_GetRelief(\fIinterp, name, reliefPtr\fB)\fR
21+
\fBTk_GetRelief\fR(\fIinterp, name, reliefPtr\fR)
2222
.sp
2323
const char *
24-
\fBTk_NameOfRelief(\fIrelief\fB)\fR
24+
\fBTk_NameOfRelief\fR(\fIrelief\fR)
25+
.fi
2526
.SH ARGUMENTS
2627
.AS "Tcl_Interp" *reliefPtr
2728
.AP Tcl_Interp *interp in
@@ -37,14 +38,12 @@ or
3738
.QW \fBsunken\fR
3839
(or any unique abbreviation thereof on input);
3940
the internal rep will be modified to cache corresponding relief value.
40-
.AP char *string in
41+
.AP "const char" *name in
4142
Same as \fIobjPtr\fR except description of relief is passed as
4243
a string.
4344
.AP int *reliefPtr out
4445
Pointer to location in which to store relief value corresponding to
4546
\fIobjPtr\fR or \fIname\fR.
46-
.AP "const char" *name
47-
Name of the relief.
4847
.AP int relief in
4948
Relief value (one of \fBTK_RELIEF_FLAT\fR, \fBTK_RELIEF_RAISED\fR,
5049
\fBTK_RELIEF_SUNKEN\fR, \fBTK_RELIEF_GROOVE\fR, \fBTK_RELIEF_SOLID\fR,

0 commit comments

Comments
 (0)
0