ui: Switch over to the new playlist.Panel class
Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
dbad19ad46
commit
7d5b9b8ba1
|
@ -8,12 +8,9 @@ class Pane(Gtk.Paned):
|
|||
def __init__(self):
|
||||
Gtk.Paned.__init__(self)
|
||||
|
||||
# Suppress some warnings during testing
|
||||
if playlist.Box.get_parent(): playlist.Box.unparent()
|
||||
|
||||
self.set_shrink_start_child(False)
|
||||
self.set_start_child(sidebar.Sidebar())
|
||||
self.set_end_child(playlist.Box)
|
||||
self.set_end_child(playlist.Panel())
|
||||
self.set_vexpand(True)
|
||||
|
||||
lib.settings.initialize("sidebar.width", 250)
|
||||
|
|
|
@ -15,8 +15,8 @@ class TestPane(unittest.TestCase):
|
|||
|
||||
self.assertIsInstance(paned, Gtk.Paned)
|
||||
self.assertIsInstance(paned.get_start_child(), sidebar.Sidebar)
|
||||
self.assertIsInstance(paned.get_end_child(), playlist.Panel)
|
||||
self.assertEqual(paned.get_orientation(), Gtk.Orientation.HORIZONTAL)
|
||||
self.assertEqual(paned.get_end_child(), playlist.Box)
|
||||
self.assertFalse(paned.get_shrink_start_child())
|
||||
self.assertTrue(paned.get_vexpand())
|
||||
|
||||
|
|
Loading…
Reference in New Issue