gtk: Increase the default Window size

Now that we've added properties, we need a slightly larger window to
display everything clearly.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This commit is contained in:
Anna Schumaker 2023-08-16 10:33:40 -04:00
parent 3dc8179624
commit af1ab81ea2
2 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,8 @@ class TestWindow(unittest.TestCase):
def test_init(self):
"""Check that the Window is set up correctly."""
self.assertIsInstance(self.window, Adw.Window)
self.assertEqual(self.window.props.default_height, 800)
self.assertEqual(self.window.props.default_width, 1200)
self.assertEqual(self.window.props.default_height, 1000)
self.assertEqual(self.window.props.default_width, 1600)
self.assertTrue(self.window.has_css_class("devel"))
self.assertIsInstance(self.window.props.content, Gtk.Box)

View File

@ -16,7 +16,7 @@ class Window(Adw.Window):
def __init__(self, **kwargs):
"""Set up our Window."""
super().__init__(default_height=800, default_width=1200,
super().__init__(default_height=1000, default_width=1600,
content=Gtk.Box(orientation=Gtk.Orientation.VERTICAL),
title=Adw.WindowTitle(title="xfstestsdb gtk"),
headerbar=Adw.HeaderBar(), **kwargs)