Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ba5cbc

Browse files
committed
Imported Tk 8.6.9
1 parent 753ac6b commit 5ba5cbc

File tree

184 files changed

+6210
-1981
lines changed

Some content is hidden

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

184 files changed

+6210
-1981
lines changed

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
A NOTE ON THE CHANGELOG:
22
Starting in early 2011, Tk source code has been under the management of
3-
fossil, hosted at http://core.tcl.tk/tk/ . Fossil presents a "Timeline"
3+
fossil, hosted at http://core.tcl-lang.org/tk/ . Fossil presents a "Timeline"
44
view of changes made that is superior in every way to a hand edited log file.
55
Because of this, many Tk developers are now out of the habit of maintaining
66
this log file. You may still find useful things in it, but the Timeline is

README

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
README: Tk
2-
This is the Tk 8.6.8 source distribution.
2+
This is the Tk 8.6.9 source distribution.
33
http://sourceforge.net/projects/tcl/files/Tcl/
44
You can get any source release of Tk from the URL above.
55

@@ -12,7 +12,7 @@ toolkit implemented with the Tcl scripting language.
1212
For details on features, incompatibilities, and potential problems with
1313
this release, see the Tcl/Tk 8.6 Web page at
1414

15-
http://www.tcl.tk/software/tcltk/8.6.html
15+
http://www.tcl-lang.org/software/tcltk/8.6.html
1616

1717
or refer to the "changes" file in this directory, which contains a
1818
historical record of all changes to Tk.
@@ -21,11 +21,11 @@ Tk is maintained, enhanced, and distributed freely by the Tcl community.
2121
Source code development and tracking of bug reports and feature requests
2222
takes place at:
2323

24-
http://core.tcl.tk/tk/
24+
http://core.tcl-lang.org/tk/
2525

2626
with the Tcl Developer Xchange at:
2727

28-
http://www.tcl.tk/
28+
http://www.tcl-lang.org/
2929

3030
Tk is a freely available open source package. You can do virtually
3131
anything you like with it, such as modifying it, redistributing it,

changes

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ ISO Latin-1 character set.
13151315
result across the execution of binding scripts. Otherwise if an event
13161316
triggers in the middle of some other script (e.g. a destroy event during
13171317
window creation, because there was an error in the creation command),
1318-
the intepreter's result gets lost.
1318+
the interpreter's result gets lost.
13191319

13201320
2/19/94 (bug fix) Fixed bug in dealing with results of sent command
13211321
that could cause them to get lost in some situations.
@@ -7370,7 +7370,7 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
73707370

73717371
2017-03-11 (bug)[775273] artifacts on Ubuntu 16.10+ (nemethi)
73727372

7373-
2n017-03-26 (TIP 464) Win multimedia keys support (fassel,vogel)
7373+
2017-03-26 (TIP 464) Win multimedia keys support (fassel,vogel)
73747374

73757375
2017-03-29 (bug)[28a3c3] test BTree memleaks plugged (anonymous)
73767376

@@ -7495,3 +7495,77 @@ Tk Cocoa 2.0: More drawing internals refinements (culler,walzer)
74957495
2017-12-18 (bug)[b77626] Make [tk busy -cursor] silent no-op on macOS (vogel)
74967496

74977497
--- Released 8.6.8, December 22, 2017 --- http://core.tcl.tk/tk/ for details
7498+
7499+
2017-12-31 (bug)[aa7679] crash using window after master destroyed (vogel)
7500+
7501+
2017-12-31 (bug)[6525e1] encoding leak in tkMacOSXProcessFiles (werner)
7502+
7503+
2018-01-07 (bug)[925262] New option -state for ttk::scale (vogel)
7504+
7505+
2018-01-07 (bug)[fa8de7] Crash [ttk::checkbutton .x -variable {}] (werner)
7506+
7507+
2018-01-16 (bug)[382712] Crash in [event generate . <KeyPress>] (werner)
7508+
7509+
2018-01-19 (bug)[657c38] Crash in menu destroy with checkbutton entry (werner)
7510+
7511+
2018-01-25 (bug)[de156e] Deny PRIMARY selection access in safe interps (nash)
7512+
7513+
2018-01-28 (bug)[b68710] Fixes in [text] bindings (nash)
7514+
7515+
2018-01-28 (bug)[e20d5c] Stop failures of textTag-18.1 (vogel)
7516+
7517+
2018-02-04 (bug)[5d991b] Fortify var traces against deleted vars (vogel)
7518+
7519+
2018-02-10 (bug)[1821174] Stop RenderBadPicture X error (werner)
7520+
7521+
2018-02-11 (bug)[502e74] Stop X errors on untrusted connections (werner)
7522+
7523+
2018-03-07 (bug)[71b131] Regression in Tk_DrawChars() (werner,cramer)
7524+
7525+
2018-04-03 (bug)[59fccb] menu flaws when empty menubar clicked (vogel,mcdonald)
7526+
7527+
2018-04-28 (bug)[7423f9] improved legacy support for [tk_setPalette] (bll)
7528+
7529+
2018-04-30 (bug)[6d5042] enable [tk inactive] on Mac OSX (culler)
7530+
7531+
2018-05-03 (bug)[75d38f] fix touchpad scroll of listbox on win notebook (vogel)
7532+
7533+
2018-06-16 (bug)[de01e2] Crash in [$text replace] (vogel)
7534+
7535+
2018-07-04 (bug)[6ca257] Fix [wm resizable] on Mac OSX (culler)
7536+
7537+
2018-07-04 (bug)[135696] Crash in [wm transient] (culler)
7538+
7539+
2018-07-04 (bug)[309b42] Improve ttk high-contrast-mode support (lemburg,vogel)
7540+
7541+
2018-07-17 (bug)[1088825] fix frame-2.17,3.9,3.10 on Mac (vogel)
7542+
7543+
2018-07-27 (bug)[fabed1] GIF photo support for "deferred clear code" (vogel)
7544+
7545+
2018-08-08 (feature) Modern full-screen support on Mac OSX (walzer)
7546+
7547+
2018-08-12 (bug)[1875c1] scrollbar on Mac OSX (walzer)
7548+
7549+
2018-08-14 (bug)[1ba71a] KeyRelease events on Mac OSX(walzer)
7550+
7551+
2018-09-02 (bug)[3441086] error message in layout-2 (vogel)
7552+
7553+
2018-09-07 (bug)[05bd7f] vista theme for combobox (vogel)
7554+
7555+
2018-09-08 (bug)[382712] crash in KeyPress event handling (vogel,werner)
7556+
7557+
2018-09-08 (bug)[6fcaaa] insertion cursor visibility in ttk::entry (nemethi)
7558+
7559+
2018-09-30 (bug)[822923] cascade menu indicator color (mcdonald)
7560+
7561+
2018-10-06 (bug)[9658bc] borderwidth calculations on menu items (vogel)
7562+
7563+
2018-10-17 (bug)[ca403f] treeview border drawing (vogel)
7564+
7565+
2018-10-17 (bug)[4b555a] hang in [$text search -all] (vogel,danckaert)
7566+
7567+
2018-10-30 (new platform) port to system changes in Mac OSX 10.14 (culler)
7568+
7569+
2018-11-04 (bug)[6b22d4] [treeview] binding fix (ohagan)
7570+
7571+
- Released 8.6.9, November 16, 2018 - http://core.tcl-lang.org/tk/ for details -

compat/stdlib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ extern char * malloc(unsigned int numBytes);
2929
extern void qsort(void *base, int n, int size, int (*compar)(
3030
const void *element1, const void *element2));
3131
extern char * realloc(char *ptr, unsigned int numBytes);
32-
extern double strtod(const char *string, char **endPtr);
3332
extern long strtol(const char *string, char **endPtr, int base);
3433
extern unsigned long strtoul(const char *string, char **endPtr, int base);
3534

doc/Inactive.3

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime \- discover user inactivity tim
1414
long
1515
\fBTk_GetUserInactiveTime(\fIdisplay\fB)\fR
1616
.sp
17-
\fBTk_GetUserInactiveTime(\fIdisplay\fB)\fR
17+
\fBTk_ResetUserInactiveTime(\fIdisplay\fB)\fR
1818
.SH ARGUMENTS
1919
.AS Display *display
2020
.AP Display *display in
@@ -26,8 +26,8 @@ reset.
2626
\fBTk_GetUserInactiveTime\fR returns the number of milliseconds that
2727
have passed since the last user interaction (usually via keyboard or
2828
mouse) with the respective display. On systems and displays that do not
29-
support querying the user inactiviy time, \fB\-1\fR is returned.
30-
\fBTk_GetUserInactiveTime\fR resets the user inactivity timer of the
29+
support querying the user inactivity time, \fB\-1\fR is returned.
30+
\fBTk_ResetUserInactiveTime\fR resets the user inactivity timer of the
3131
given display to zero. On windowing systems that do not support
3232
multiple displays \fIdisplay\fR can be passed as \fBNULL\fR.
3333
.SH KEYWORDS

doc/chooseDirectory.n

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ The procedure \fBtk_chooseDirectory\fR pops up a dialog box for the
1717
user to select a directory. The following \fIoption\-value\fR pairs are
1818
possible as command line arguments:
1919
.TP
20+
\fB\-command\fR \fIstring\fR
21+
Specifies the prefix of a Tcl command to invoke when the user closes the
22+
dialog after having selected an item. This callback is not called if the
23+
user cancelled the dialog. The actual command consists of \fIstring\fR
24+
followed by a space and the value selected by the user in the dialog. This
25+
is only available on Mac OS X.
26+
.TP
2027
\fB\-initialdir\fR \fIdirname\fR
2128
Specifies that the directories in \fIdirectory\fR should be displayed
2229
when the dialog pops up. If this parameter is not specified,
@@ -27,6 +34,10 @@ user-selected directory for the application. If the
2734
parameter specifies a relative path, the return value will convert the
2835
relative path to an absolute path.
2936
.TP
37+
\fB\-message\fR \fIstring\fR
38+
Specifies a message to include in the client area of the dialog.
39+
This is only available on Mac OS X.
40+
.TP
3041
\fB\-mustexist\fR \fIboolean\fR
3142
Specifies whether the user may specify non-existent directories. If
3243
this parameter is true, then the user may only select directories that

doc/event.n

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,9 @@ This is sent to a text widget when the selection in the widget is
338338
changed.
339339
.TP
340340
\fB<<ThemeChanged>>\fR
341-
This is sent to a text widget when the ttk (Tile) theme changed.
341+
This is sent to all widgets when the ttk theme changed. The ttk
342+
widgets listen to this event and redisplay themselves when it fires.
343+
The legacy widgets ignore this event.
342344
.TP
343345
\fB<<TraverseIn>>\fR
344346
This is sent to a widget when the focus enters the widget because of a

doc/getOpenFile.n

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ whether the existing file should be overwritten or not.
3535
The following \fIoption\-value\fR pairs are possible as command line
3636
arguments to these two commands:
3737
.TP
38+
\fB\-command\fR \fIstring\fR
39+
Specifies the prefix of a Tcl command to invoke when the user closes the
40+
dialog after having selected an item. This callback is not called if the
41+
user cancelled the dialog. The actual command consists of \fIstring\fR
42+
followed by a space and the value selected by the user in the dialog. This
43+
is only available on Mac OS X.
44+
.TP
3845
\fB\-confirmoverwrite\fR \fIboolean\fR
3946
Configures how the Save dialog reacts when the selected file already
4047
exists, and saving would overwrite it. A true value requests a

doc/messageBox.n

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ buttons. Then it returns the symbolic name of the selected button.
2424
.PP
2525
The following option-value pairs are supported:
2626
.TP
27+
\fB\-command\fR \fIstring\fR
28+
Specifies the prefix of a Tcl command to invoke when the user closes the
29+
dialog. The actual command consists of \fIstring\fR followed by a space
30+
and the name of the button clicked by the user to close the dialog. This
31+
is only available on Mac OS X.
32+
.TP
2733
\fB\-default\fR \fIname\fR
2834
.
2935
\fIName\fR gives the symbolic name of the default button for

doc/panedwindow.n

Lines changed: 61 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ drawn as squares. May be any value accepted by \fBTk_GetPixels\fR.
2929
Specifies a desired height for the overall panedwindow widget. May be any
3030
value accepted by \fBTk_GetPixels\fR. If an empty string, the widget will be
3131
made high enough to allow all contained widgets to have their natural height.
32+
.OP \-opaqueresize opaqueResize OpaqueResize
33+
Specifies whether panes should be resized as a sash is moved (true),
34+
or if resizing should be deferred until the sash is placed (false).
35+
In the latter case, a
36+
.QW ghost
37+
version of the sash is displayed during the resizing to show where the
38+
panes will be resized to when releasing the mouse button. This
39+
.QW ghost
40+
version of the sash is the proxy. It's rendering can be configured
41+
using the \fB-proxybackground\fR, \fB-proxyborderwidth\fR and
42+
\fB-proxyrelief\fR options.
3243
.OP \-proxybackground proxyBackground ProxyBackground
3344
Background color to use when drawing the proxy. If an empty string, the
3445
value of the \fB-background\fR option will be used.
@@ -39,9 +50,6 @@ Specifies the borderwidth of the proxy. May be any value accepted by
3950
Relief to use when drawing the proxy. May be any of the standard Tk
4051
relief values. If an empty string, the value of the \fB-sashrelief\fR
4152
option will be used.
42-
.OP \-opaqueresize opaqueResize OpaqueResize
43-
Specifies whether panes should be resized as a sash is moved (true),
44-
or if resizing should be deferred until the sash is placed (false).
4553
.OP \-sashcursor sashCursor SashCursor
4654
Mouse cursor to use when over a sash. If null,
4755
\fBsb_h_double_arrow\fR will be used for horizontal panedwindows, and
@@ -133,56 +141,6 @@ index of the sash or handle, and a word indicating whether it is over
133141
a sash or a handle, such as {0 sash} or {2 handle}. If the point is
134142
over any other part of the panedwindow, the result is an empty list.
135143
.TP
136-
\fIpathName \fBproxy \fR?\fIargs\fR?
137-
.
138-
This command is used to query and change the position of the sash
139-
proxy, used for rubberband-style pane resizing. It can take any of
140-
the following forms:
141-
.RS
142-
.TP
143-
\fIpathName \fBproxy coord\fR
144-
.
145-
Return a list containing the x and y coordinates of the most recent
146-
proxy location.
147-
.TP
148-
\fIpathName \fBproxy forget\fR
149-
.
150-
Remove the proxy from the display.
151-
.TP
152-
\fIpathName \fBproxy place \fIx y\fR
153-
.
154-
Place the proxy at the given \fIx\fR and \fIy\fR coordinates.
155-
.RE
156-
.TP
157-
\fIpathName \fBsash \fR?\fIargs\fR?
158-
This command is used to query and change the position of sashes in the
159-
panedwindow. It can take any of the following forms:
160-
.RS
161-
.TP
162-
\fIpathName \fBsash coord \fIindex\fR
163-
.
164-
Return the current x and y coordinate pair for the sash given by
165-
\fIindex\fR. \fIIndex\fR must be an integer between 0 and 1 less than
166-
the number of panes in the panedwindow. The coordinates given are
167-
those of the top left corner of the region containing the sash.
168-
.TP
169-
\fIpathName \fBsash dragto \fIindex x y\fR
170-
.
171-
This command computes the difference between the given coordinates and the
172-
coordinates given to the last \fBsash mark\fR command for the given
173-
sash. It then moves that sash the computed difference. The return
174-
value is the empty string.
175-
.TP
176-
\fIpathName \fBsash mark \fIindex x y\fR
177-
.
178-
Records \fIx\fR and \fIy\fR for the sash given by \fIindex\fR; used in
179-
conjunction with later \fBsash dragto\fR commands to move the sash.
180-
.TP
181-
\fIpathName \fBsash place \fIindex x y\fR
182-
.
183-
Place the sash given by \fIindex\fR at the given coordinates.
184-
.RE
185-
.TP
186144
\fIpathName \fBpanecget \fIwindow option\fR
187145
.
188146
Query a management option for \fIwindow\fR. \fIOption\fR may be any
@@ -310,6 +268,56 @@ panedwindow. \fISize\fR may be any value accepted by \fBTk_GetPixels\fR.
310268
\fIpathName \fBpanes\fR
311269
.
312270
Returns an ordered list of the widgets managed by \fIpathName\fR.
271+
.TP
272+
\fIpathName \fBproxy \fR?\fIargs\fR?
273+
.
274+
This command is used to query and change the position of the sash
275+
proxy, used for rubberband-style pane resizing. It can take any of
276+
the following forms:
277+
.RS
278+
.TP
279+
\fIpathName \fBproxy coord\fR
280+
.
281+
Return a list containing the x and y coordinates of the most recent
282+
proxy location.
283+
.TP
284+
\fIpathName \fBproxy forget\fR
285+
.
286+
Remove the proxy from the display.
287+
.TP
288+
\fIpathName \fBproxy place \fIx y\fR
289+
.
290+
Place the proxy at the given \fIx\fR and \fIy\fR coordinates.
291+
.RE
292+
.TP
293+
\fIpathName \fBsash \fR?\fIargs\fR?
294+
This command is used to query and change the position of sashes in the
295+
panedwindow. It can take any of the following forms:
296+
.RS
297+
.TP
298+
\fIpathName \fBsash coord \fIindex\fR
299+
.
300+
Return the current x and y coordinate pair for the sash given by
301+
\fIindex\fR. \fIIndex\fR must be an integer between 0 and 1 less than
302+
the number of panes in the panedwindow. The coordinates given are
303+
those of the top left corner of the region containing the sash.
304+
.TP
305+
\fIpathName \fBsash dragto \fIindex x y\fR
306+
.
307+
This command computes the difference between the given coordinates and the
308+
coordinates given to the last \fBsash mark\fR command for the given
309+
sash. It then moves that sash the computed difference. The return
310+
value is the empty string.
311+
.TP
312+
\fIpathName \fBsash mark \fIindex x y\fR
313+
.
314+
Records \fIx\fR and \fIy\fR for the sash given by \fIindex\fR; used in
315+
conjunction with later \fBsash dragto\fR commands to move the sash.
316+
.TP
317+
\fIpathName \fBsash place \fIindex x y\fR
318+
.
319+
Place the sash given by \fIindex\fR at the given coordinates.
320+
.RE
313321
.SH "RESIZING PANES"
314322
.PP
315323
A pane is resized by grabbing the sash (or sash handle if present) and

doc/radiobutton.n

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ alternative relief is used when the mouse cursor is over the radiobutton.
6363
The empty string is the default value.
6464
.OP \-selectcolor selectColor Background
6565
Specifies a background color to use when the button is selected.
66-
If \fB\-indicatoron\fR is true then the color applies to the indicator.
67-
Under Windows, this color is used as the background for the indicator
68-
regardless of the select state.
66+
If \fBindicatorOn\fR is true then the color is used as the background for
67+
the indicator regardless of the select state.
6968
If \fB\-indicatoron\fR is false, this color is used as the background
7069
for the entire widget, in place of \fB\-background\fR or \fB\-activeBackground\fR,
7170
whenever the widget is selected.

0 commit comments

Comments
 (0)