Skip to content
Snippets Groups Projects
Commit b764b510 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

imprv: SideBarSwitcher: Add width parameter

parent 061c9995
No related branches found
No related tags found
No related merge requests found
......@@ -23,10 +23,12 @@
class SideBarSwitcher(Gtk.ListBox):
def __init__(self):
def __init__(self, width: Optional[int] = None) -> None:
Gtk.ListBox.__init__(self)
self.set_vexpand(True)
self.get_style_context().add_class('settings-menu')
if width is not None:
self.set_size_request(width, -1)
self.connect('row-activated', self._on_row_activated)
self._stack = cast(Gtk.Stack, None)
self._rows: dict[str, Row] = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment