Set default column size in list views

Set the column size in list views so that the PersistentTreeView
has sensible defaults.

Fixes #12944.
This commit is contained in:
Nick Hall 2023-08-01 23:23:56 +01:00
parent 4b754f0b48
commit da027eb636

View File

@ -283,8 +283,7 @@ class ListView(NavigationView):
column.set_resizable(True)
column.set_clickable(True)
column.set_sizing(Gtk.TreeViewColumnSizing.FIXED)
# removed since we have a PersistentTreeView
# column.set_fixed_width(pair[2])
column.set_fixed_width(pair[2])
self.columns.append(column)
self.list.append_column(column)