Tk Source Code

Check-in [cda795ec]
Login

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

Overview
Comment:Fix [a4c72a04e3]: errors when a menu is destroyed while it is posted. The menu can be destroyed during "$menu post", by the -postcommand or, on macOS, while the native menu is shown (e.g. by Cmd+W). tk::PostOverPoint, tk::MbPost and tk_popup no longer use the destroyed menu or menubutton afterwards, and Priv(postedMb) is cleared. See also [680884].
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | menubutton-post-destroyed
Files: files | file ages | folders
SHA3-256: cda795ec1cf84b71a662fe86856c28dfbbfe53a2bb518488daf9407129089d20
User & Date: serhiy.storchaka 2026-10-08 12:59:59.741
Context
2026-10-15
07:27
Fix [a4c72a]: errors when a menu is destroyed while it is posted check-in: 6037383f user: jan.nijtmans tags: trunk, main
2026-10-08
12:59
Fix [a4c72a04e3]: errors when a menu is destroyed while it is posted. The menu can be destroyed during "$menu post", by the -postcommand or, on macOS, while the native menu is shown (e.g. by Cmd+W). tk::PostOverPoint, tk::MbPost and tk_popup no longer use the destroyed menu or menubutton afterwards, and Priv(postedMb) is cleared. See also [680884]. closed check-in: cda795ec user: serhiy.storchaka tags: menubutton-post-destroyed
12:48
Fix [434c8dd804]: crash in Tk_ConfigureWidget when a default value of a canvas item option is invalid check-in: a2791cb1 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to library/menu.tcl.
Changes to tests/menu.test.
Changes to tests/menubut.test.