From 894191d3a0ea737f2f9a633fe1354f88544c8016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 1 Dec 2021 13:00:13 +0100 Subject: [PATCH] entry: Use a scrolled window This ensures all entries are reachable even with the OSK unfolded --- tools/entry.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/entry.py b/tools/entry.py index 5064a4fa..0a15c0f3 100644 --- a/tools/entry.py +++ b/tools/entry.py @@ -46,6 +46,7 @@ class App(Gtk.Application): def do_activate(self): w = Gtk.ApplicationWindow(application=self) + w.set_default_size (300, 500) notebook = Gtk.Notebook() def add_purpose(entry, purpose): entry.set_input_purpose(purpose) @@ -54,7 +55,10 @@ class App(Gtk.Application): purpose_grid = new_grid(self.purposes, add_purpose) hint_grid = new_grid(self.hints, add_hint) - notebook.append_page(purpose_grid, Gtk.Label(label="Purposes")) + purpose_scroll = Gtk.ScrolledWindow() + purpose_scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) + purpose_scroll.add(purpose_grid) + notebook.append_page(purpose_scroll, Gtk.Label(label="Purposes")) notebook.append_page(hint_grid, Gtk.Label(label="Hints")) w.add(notebook) w.show_all()