Keep left Tree at Minimal Size

When resizing the window or switching entries in the left
tree, the width of the tree changes and takes more space
than required.

Switch it over to only take the minimal amount of space and
do not extend when resizing the window.
This commit is contained in:
Christian Tacke 2021-12-25 17:03:50 +01:00 committed by Peter F. Patel-Schneider
parent 2ee04d89fd
commit d9dbf53868
1 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ def _create_window_layout():
tree_scroll = Gtk.ScrolledWindow() tree_scroll = Gtk.ScrolledWindow()
tree_scroll.add(_tree) tree_scroll.add(_tree)
tree_scroll.set_min_content_width(_tree.get_size_request()[0]) tree_scroll.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
tree_scroll.set_shadow_type(Gtk.ShadowType.IN) tree_scroll.set_shadow_type(Gtk.ShadowType.IN)
tree_panel = Gtk.Box.new(Gtk.Orientation.VERTICAL, 0) tree_panel = Gtk.Box.new(Gtk.Orientation.VERTICAL, 0)
@ -312,7 +312,7 @@ def _create_window_layout():
tree_panel.pack_start(_details, False, False, 0) tree_panel.pack_start(_details, False, False, 0)
panel = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 16) panel = Gtk.Box.new(Gtk.Orientation.HORIZONTAL, 16)
panel.pack_start(tree_panel, True, True, 0) panel.pack_start(tree_panel, False, False, 0)
panel.pack_start(_info, True, True, 0) panel.pack_start(_info, True, True, 0)
panel.pack_start(_empty, True, True, 0) panel.pack_start(_empty, True, True, 0)