ui: allow config panel to scroll
This commit is contained in:
parent
14587c4aed
commit
5082ac9745
|
@ -629,7 +629,14 @@ def create():
|
||||||
assert _box is None
|
assert _box is None
|
||||||
_box = Gtk.VBox(homogeneous=False, spacing=8)
|
_box = Gtk.VBox(homogeneous=False, spacing=8)
|
||||||
_box._last_device = None
|
_box._last_device = None
|
||||||
return _box
|
|
||||||
|
config_scroll = Gtk.ScrolledWindow()
|
||||||
|
config_scroll.add(_box)
|
||||||
|
config_scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
|
||||||
|
config_scroll.set_shadow_type(Gtk.ShadowType.IN)
|
||||||
|
config_scroll.set_size_request(0, 350) # ask for enough vertical space for about eight settings
|
||||||
|
|
||||||
|
return config_scroll
|
||||||
|
|
||||||
|
|
||||||
def update(device, is_online=None):
|
def update(device, is_online=None):
|
||||||
|
|
Loading…
Reference in New Issue