From 8301cbb457d75b94e673d882b24af49977914c71 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Wed, 10 Jun 2026 02:26:32 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20wakeword=20pane=20actually=20resizable?= =?UTF-8?q?=20=E2=80=94=20wrap=20controls=20in=20ScrolledWindow=20(v2.03.2?= =?UTF-8?q?3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- linux/CHANGELOG.md | 7 +++++++ linux/blitztext/__init__.py | 2 +- linux/blitztext/gtksettings.py | 12 +++++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/linux/CHANGELOG.md b/linux/CHANGELOG.md index cac4ec0..5cb6065 100644 --- a/linux/CHANGELOG.md +++ b/linux/CHANGELOG.md @@ -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 diff --git a/linux/blitztext/__init__.py b/linux/blitztext/__init__.py index 862f1c6..fef13c2 100644 --- a/linux/blitztext/__init__.py +++ b/linux/blitztext/__init__.py @@ -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" diff --git a/linux/blitztext/gtksettings.py b/linux/blitztext/gtksettings.py index 24f417b..918c51d 100644 --- a/linux/blitztext/gtksettings.py +++ b/linux/blitztext/gtksettings.py @@ -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: