pane: Change the initial position

Now that the sidebar switcher isn't in the pane, we can make it a
little smaller

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2021-07-17 09:17:58 -04:00
parent 18d001d0f0
commit 828fca9abd
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@ import sidebar
Pane = Gtk.Paned.new(Gtk.Orientation.HORIZONTAL)
def initialize():
settings.initialize("sidebar.width", 250)
settings.initialize("sidebar.width", 200)
initialize()
Pane.set_position(settings.get_int("sidebar.width"))

View File

@ -16,9 +16,9 @@ class TestUIPane(unittest.TestCase):
self.assertEqual(pane.Pane.get_end_child(), playlist.Box)
self.assertTrue(pane.Pane.get_vexpand())
self.assertEqual(pane.Pane.get_position(), 250)
self.assertEqual(settings.get_int("sidebar.width"), 250)
pane.Pane.set_position(200)
self.assertEqual(pane.Pane.get_position(), 200)
self.assertEqual(settings.get_int("sidebar.width"), 200)
pane.Pane.set_position(100)
self.assertEqual(pane.Pane.get_position(), 100)
self.assertEqual(settings.get_int("sidebar.width"), 100)