fix: wakeword pane actually resizable — wrap controls in ScrolledWindow (v2.03.23)
The controls pane now has shrink=True and a ScrolledWindow wrapper, so dragging the divider upward collapses the controls and expands the table. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
012a069ad0
commit
8301cbb457
@ -9,6 +9,13 @@ The version is defined in [`blitztext/__init__.py`](blitztext/__init__.py).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.03.23] - 2026-06-10
|
||||
|
||||
### Fixed
|
||||
- **Wakeword results table actually resizable.** The controls pane is now
|
||||
wrapped in a ScrolledWindow with `shrink=True`, so dragging the divider
|
||||
upward collapses the controls and expands the table freely.
|
||||
|
||||
## [2.03.22] - 2026-06-10
|
||||
|
||||
### Changed
|
||||
|
||||
@ -6,4 +6,4 @@ counterpart to the macOS Blitztext menu bar app: it runs natively on the host
|
||||
(not in a container) so it can type into any application via xdotool.
|
||||
"""
|
||||
|
||||
__version__ = "2.03.22"
|
||||
__version__ = "2.03.23"
|
||||
|
||||
@ -2485,12 +2485,18 @@ notebook.bt-nb tab:checked label {
|
||||
results_box.pack_start(ww_sw, True, True, 0)
|
||||
results_box.pack_start(self.wwb_summary, False, False, 0)
|
||||
|
||||
# Wrap controls in a ScrolledWindow so the pane can shrink past its
|
||||
# natural height when the user drags the divider upward.
|
||||
ctrl_sw = Gtk.ScrolledWindow()
|
||||
ctrl_sw.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
|
||||
ctrl_sw.set_min_content_height(120)
|
||||
ctrl_sw.add(ctrl)
|
||||
|
||||
# ---- Paned: drag the divider to give more space to the table ----
|
||||
ww_paned = Gtk.Paned(orientation=Gtk.Orientation.VERTICAL)
|
||||
ww_paned.pack1(ctrl, resize=False, shrink=False)
|
||||
ww_paned.pack1(ctrl_sw, resize=True, shrink=True)
|
||||
ww_paned.pack2(results_box, resize=True, shrink=False)
|
||||
ww_paned.set_position(340)
|
||||
ww_paned.set_size_request(-1, 260)
|
||||
ww_paned.set_position(260)
|
||||
page.pack_start(ww_paned, True, True, 4)
|
||||
|
||||
def _run_bench(self, _b) -> None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user