Tk Source Code

Check-in [ef4c3587]
Login

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

Overview
Comment:Fix [1723059]: entryconfigure of a cascade entry destroys its menu

The entry of a cloned menu points to a clone of the cascade menu, not to the cascade menu itself. If the cascade entry of a menubar menu was configured with the menu which it already had, ConfigureMenuCloneEntries() passed the -menu option to the clones anyway, so their entries pointed to the cascade menu itself, and the next change of the entry deleted it as if it were a clone. Now the -menu option is not passed to the clones if the cascade menu is not changed. Test menu-42.1.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | menu-clone-cascade-destroy
Files: files | file ages | folders
SHA3-256: ef4c358706518e235f6f6a939d763ce501f2a13a243bb2bb8700722d5cbe2bea
User & Date: serhiy.storchaka 2026-09-23 07:35:00.786
References
2026-09-23
07:36 • Ticket [1723059f] Entryconfigure destroys submenus status still Open with 3 other changes artifact: a6ddabec user: serhiy.storchaka
Context
2026-09-30
17:43
Merge trunk. Renumber the test for [1723059] to menu-45.1, since trunk now has another menu-42.1. closed check-in: 257a67c1 user: serhiy.storchaka tags: menu-clone-cascade-destroy
2026-09-23
07:35
Fix [1723059]: entryconfigure of a cascade entry destroys its menu

The entry of a cloned menu points to a clone of the cascade menu, not to the cascade menu itself. If the cascade entry of a menubar menu was configured with the menu which it already had, ConfigureMenuCloneEntries() passed the -menu option to the clones anyway, so their entries pointed to the cascade menu itself, and the next change of the entry deleted it as if it were a clone. Now the -menu option is not passed to the clones if the cascade menu is not changed. Test menu-42.1. check-in: ef4c3587 user: serhiy.storchaka tags: menu-clone-cascade-destroy

2026-09-22
19:10
Fix for [b086bb1d61]: ttk::style command moves ttk::panedwindow sashes. check-in: 7f352b01 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkMenu.c.
Changes to tests/menu.test.