Tk Source Code

Check-in [48830cec]
Login

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

Overview
Comment:Fix [991849]: removal/optimization of scrollbar events?

Canvas, text and ttk scrollable widgets called the scroll commands for an unmapped window, with the fractions for its size 1x1 before the first mapping. Postpone the call until the window is mapped, as the listbox does.

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | scroll-command-unmapped
Files: files | file ages | folders
SHA3-256: 48830cec09b2a5337a9617d1f6d6db4a75e15e49dc280c0215adfdda5f6c53ca
User & Date: serhiy.storchaka 2026-09-28 18:49:03.273
Context
2026-10-05
09:38
Fix for [991849ffff]: canvas,text,ttk widgets: call scrollbar commands after window mapping (and not with 1x1 initial size) check-in: aa35622f user: csaba tags: trunk, main
2026-09-28
18:49
Fix [991849]: removal/optimization of scrollbar events?

Canvas, text and ttk scrollable widgets called the scroll commands for an unmapped window, with the fractions for its size 1x1 before the first mapping. Postpone the call until the window is mapped, as the listbox does. closed check-in: 48830cec user: serhiy.storchaka tags: scroll-command-unmapped

14:00
Use TkObjIsEmpty() in more places check-in: 40f0e170 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkCanvas.c.
Changes to generic/tkTextDisp.c.
Changes to generic/ttk/ttkScroll.c.
Changes to tests/canvas.test.
Changes to tests/listbox.test.
Changes to tests/text.test.
Changes to tests/ttk/treeview.test.