From 7edbccdf68f64fd4fa9431b44ca69e97c34c0a30 Mon Sep 17 00:00:00 2001 From: Charles Whittington Date: Sun, 8 Dec 2024 23:55:41 -0500 Subject: [PATCH] More GTK testbed fixes --- gtk/src/toga_gtk/window.py | 2 +- gtk/tests_backend/widgets/base.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/src/toga_gtk/window.py b/gtk/src/toga_gtk/window.py index 214ad78f90..7cc71de6a3 100644 --- a/gtk/src/toga_gtk/window.py +++ b/gtk/src/toga_gtk/window.py @@ -387,6 +387,6 @@ def create_toolbar(self): self.native_toolbar, expand=False, fill=False, - margin=0, + padding=0, ) self.native_toolbar.show_all() diff --git a/gtk/tests_backend/widgets/base.py b/gtk/tests_backend/widgets/base.py index c5bd0af7b4..cbea442708 100644 --- a/gtk/tests_backend/widgets/base.py +++ b/gtk/tests_backend/widgets/base.py @@ -38,8 +38,8 @@ def assert_not_contained(self): assert self.widget._impl.container is None assert self.native.get_parent() is None - def assert_align_items(self, expected): - assert self.align_items == expected + def assert_text_alignment(self, expected): + assert self.text_alignment == expected def repaint_needed(self): return self.impl.container.needs_redraw or super().repaint_needed()