Tk Source Code

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

50 most recent check-ins related to "core-8-6-branch"

2026-09-24
14:20
Update changes.md leaf check-in: 3e424834 user: jan.nijtmans tags: core-9-0-branch
14:18
Fix [3131699cb4]: Mapped/Unmapped and Iconic State Problems leaf check-in: dff1adf8 user: jan.nijtmans tags: core-8-6-branch
12:46
Fix [3131699cb4]: Mapped/Unmapped and Iconic State Problems check-in: 8a03a558 user: jan.nijtmans tags: core-9-0-branch
12:00
Fix for [e7fc29ce4c]: Performance problems with "photo copy -to". check-in: db55ab86 user: csaba tags: core-8-6-branch
11:36
Fix for [e7fc29ce4c]: Performance problems with "photo copy -to". check-in: a695524c user: csaba tags: trunk, main
10:49
New testcase spinbox-26.2 check-in: 2886c9dd user: jan.nijtmans tags: core-9-0-branch
09:57
Fix [2358545fff] (again). Thanks, Serhiy! check-in: 8ebff84d user: jan.nijtmans tags: core-8-6-branch
08:15
Fix the bug reference in the spinbox-26.2 test title. [Bug 9e89324a0a] closed check-in: 8ac67e76 user: serhiy.storchaka tags: spinbox-octal-86
08:13
Do not parse spinbox values with leading zeros as octal. The fix for [9e89324a0a] replaced sscanf() with Tcl_GetDouble(), which in Tcl 8.6 treats "08" as invalid octal and "010" as 8, so a spinbox with -format %02.0f went from 07 to 08 to 00. Strip leading zeros before Tcl_GetDouble(). [Bug 9e89324a0a] check-in: 833ef12b user: serhiy.storchaka tags: spinbox-octal-86
2026-09-23
11:14
Updated the changes file. check-in: f2432fe2 user: csaba tags: core-8-6-branch
11:07
Fix for [3de1b72157]: ttk::notebook takes the focus when clicked, even with the -takefocus 0 option. check-in: 08026898 user: csaba tags: core-8-6-branch
10:33
Fix for [3de1b72157]: ttk::notebook takes the focus when clicked, even with the -takefocus 0 option. check-in: a695f427 user: csaba tags: trunk, main
09:19
Fix [223635]: NULL dereference as result of peculiarly formed font name. Update changelog check-in: 16ff7e43 user: jan.nijtmans tags: core-8-6-branch
08:56
Fix [2236352]: NULL dereference as result of peculiarly formed font name check-in: ec6c013e user: jan.nijtmans tags: core-9-0-branch
08:31
Fix [b086bb1d61]: ttk::style command moves ttk::panedwindow sashes

Backport of [880f8c8d59] from 9.0 and 9.1. A pane in a hidden notebook tab is unmapped, so its geometry request was taken as the initial request of a pane which is not shown yet, and it overwrote the sash position. The new Ttk_ContentIsMapped() tells whether the pane has been placed, which does not change while the panedwindow itself is unmapped. Test paned-unmapped-1. check-in: 0b59d9cd user: serhiy.storchaka tags: core-8-6-branch

08:25
On macOS, do not replace the signal handlers of the embedding application

Backport of [87fa518cee] from 9.0 and 9.1: the SIGINT, SIGHUP and SIGTERM handlers are only installed if the application which embeds Tk has not installed its own (e.g. Python raises KeyboardInterrupt from its SIGINT handler). check-in: c505fe41 user: serhiy.storchaka tags: core-8-6-branch

08:04
Fix [a9bd2ab98b], [f492c3de04]: keyboard input on Windows

Backport of the fixes from 9.0 and 9.1.

A WM_KEYDOWN message with VK_PACKET, sent for a character entered via an input method or the touch keyboard, was re-posted with the character as the virtual key code, so the KeyPress event had the keysym of a function key. Now no events are generated for the VK_PACKET key itself; the WM_CHAR message produced by TranslateMessage() generates the key events.

GetTranslatedKey() retrieved the WM_CHAR messages with GetMessageA(), so Windows converted the characters to the code page of the keyboard layout, and TkpGetString() decoded them with a code page guessed from the input language. When the two differed, the typed characters were mangled. Now the messages are retrieved as Unicode and the characters are stored as UTF-8 in the key event, and the code page machinery is removed.

Tests event-8.4, event-8.5 and event-8.6, and the missing testsendinput constraint. check-in: 4a7d6f6b user: serhiy.storchaka tags: core-8-6-branch

2026-09-22
14:28
Tcl_Free -> ckfree (for consistancy) check-in: 203ae933 user: jan.nijtmans tags: core-9-0-branch
14:11
Fix [9e89324a0a]: spinbox parsing depends on the LC_NUMERIC locale check-in: e0dd3fdb user: jan.nijtmans tags: core-8-6-branch
12:23
Fix [9e89324a0a]: spinbox parsing depends on the LC_NUMERIC locale check-in: 009719f2 user: jan.nijtmans tags: trunk, main
2026-09-21
08:34
[433261290b]: Keyboard shortcuts do not work with a non-Latin keyboard layout on Windows check-in: 41850679 user: oehhar tags: core-8-6-branch
08:17
[433261290b]: Keyboard shortcuts do not work with a non-Latin keyboard layout on Windows check-in: 6c568d49 user: oehhar tags: trunk, main
2026-09-18
15:58
Fix [edd1a68d6e]: Lack of bounds checking in argument parsing for some widgets

Port [c289f69486] from core-8-6-branch: frame, toplevel and labelframe crashed when the last option had no value. Add tests. check-in: d938d1b9 user: jan.nijtmans tags: core-9-0-branch

15:49
Merge frame-option-parity: additional testcases check-in: 2160ee2a user: jan.nijtmans tags: core-8-6-branch
10:02
Fix [edd1a68d6e]: Lack of bounds checking in argument parsing for some widgets

Port [c289f69486] from core-8-6-branch: frame, toplevel and labelframe crashed when the last option had no value. Add tests. closed check-in: 0f5f1d83 user: serhiy.storchaka tags: frame-option-parity

2026-09-16
18:09
Fix [433261290b]: Keyboard shortcuts do not work with a non-Latin keyboard layout on Windows

With a Cyrillic or other non-Latin layout, TkpGetKeySym() returned the character of the key as the keysym for Ctrl+key and Alt+key. It is not a valid keysym, so bindings like <Control-c> and <Alt-x> never matched. Now the Latin letter or digit of the virtual key code is used, as other Windows applications do. Typed characters (%A) are not affected. check-in: 3eafc907 user: serhiy.storchaka tags: win-nonlatin-shortcuts

2026-09-15
19:54
Fix [56eec524d7]: tk_getOpenFile -multiple (tkfbox): confirmed files are appended to the -initialfile selection instead of replacing it check-in: d2d7453a user: jan.nijtmans tags: core-9-0-branch
19:49
Fix [56eec524d7]: tk_getOpenFile -multiple (tkfbox): confirmed files are appended to the -initialfile selection instead of replacing it check-in: c95ac18f user: jan.nijtmans tags: core-8-6-branch
15:10
Fix [ed6c3a787d]: Modal window is not restored after "show desktop" check-in: 10583c42 user: jan.nijtmans tags: core-9-0-branch
15:08
Fix [ed6c3a787d]: Modal window is not restored after "show desktop" check-in: bfaaec21 user: jan.nijtmans tags: core-8-6-branch
2026-09-13
20:14
Fix [ed6c3a787d]: Modal window is not restored after "show desktop" (win+d) is pressed

"Show desktop" minimizes windows without WM_SYSCOMMAND, and SC_RESTORE was ignored for windows outside the grab tree, so the main window could not be restored from the taskbar, and neither could the modal dialog owned by it. closed check-in: 2838273d user: serhiy.storchaka tags: win-grab-restore

2026-08-10
12:27
(cherry-pick): Correct comment typo check-in: 1024fc70 user: jan.nijtmans tags: core-9-0-branch
12:20
Fix [9c97db2924] by reverting [ad6d7ead622111dc]. Backport commit is wrong, not suitable and neccessary for 8.6 check-in: a38c33b0 user: jan.nijtmans tags: core-8-6-branch
2026-08-08
11:30
Fix for [d62ee2a05e]: tk console manual errors and undocumented bindings. check-in: 6ee0dcf6 user: csaba tags: core-8-6-branch
11:02
Fix for [d62ee2a05e]: tk console manual errors and undocumented bindings. check-in: 32f1e34f user: csaba tags: trunk, main
2026-08-06
15:28
Fix for [971a266013]: Xlib emulation for macOS causes many visual artifacts. check-in: 8a0f8f07 user: csaba tags: core-8-6-branch
14:51
Fix for [971a266013]: Xlib emulation for macOS causes many visual artifacts. check-in: 0e5b1c31 user: csaba tags: trunk, main
2026-07-29
02:09
Fix for [f476bada5b]: Deleting canvas items leaks memory check-in: ad6d7ead user: bohagan tags: core-8-6-branch
2026-07-28
02:06
Follow-up to [d2b7faada83c897d] to add another canvas memory leak fix check-in: f52b80cc user: Brian tags: trunk, main
2026-07-27
01:44
Fix for [f476bada5b]: Canvas deleting canvas items leaks memory check-in: d2b7faad user: Brian tags: trunk, main
2026-07-25
16:41
Follow-up to fix for [2f857074fc]: ttk::entry has a wrong background in clam theme and readonly state. check-in: d3daaf59 user: csaba tags: core-8-6-branch
16:28
Follow-up to fix for [2f857074fc]: ttk::entry has a wrong background in clam theme and readonly state. check-in: 0a41def2 user: csaba tags: trunk, main
2026-07-24
09:51
Fix for [2f857074fc]: ttk::entry has a wrong background in clam theme and readonly state. check-in: 8cd0ff96 user: csaba tags: core-8-6-branch
2026-07-23
19:33
Fix for [2f857074fc]: ttk::entry has a wrong background in clam theme and readonly state. check-in: f510af3b user: csaba tags: trunk, main
2026-07-01
13:47
Fix [3cb7c4ac72]: tk inactive returns a negative value on Windows for long inactivity check-in: 9bf0b5fb user: jan.nijtmans tags: core-9-0-branch
10:16
Fix [3cb7c4ac72]: tk inactive returns a negative value on Windows for long inactivity. Add a few type-casts (backported) check-in: 1c1c4982 user: jan.nijtmans tags: core-8-6-branch
2026-06-30
13:47
Fix [3cb7c4ac72]: tk inactive returns a negative value on Windows for long inactivity

On Windows long is 32-bit, so the unsigned 32-bit GetTickCount()-li.dwTime delta in Tk_GetUserInactiveTime() was returned as a negative number for inactivity of 2**31 ms or more. Clamp to 0x7fffffff.

CPython: https://github.com/python/cpython/issues/151881 closed check-in: 4b67ee9c user: serhiy.storchaka tags: tk-inactive-win-overflow

13:40
Merge-mark check-in: 127d88ec user: jan.nijtmans tags: core-9-0-branch
13:37
Fix [348b482ff7]: scale, spinbox and place format floating-point values using the LC_NUMERIC locale check-in: b05d042d user: jan.nijtmans tags: core-8-6-branch
2026-06-25
08:44
Follow-up to [348b482ff7]. Two more places where TkFormatDouble should have been used check-in: bc8c7390 user: jan.nijtmans tags: core-9-0-branch