improved column sizing in playlist view

This commit is contained in:
Martin Wagner 2020-02-28 23:40:01 +01:00
parent 45236c9e28
commit ad0f57dfd2

View File

@ -699,7 +699,7 @@ class TrackView(Gtk.Box):
self.column_track = Gtk.TreeViewColumn(_("No"), renderer_text, text=0) self.column_track = Gtk.TreeViewColumn(_("No"), renderer_text, text=0)
self.column_track.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE) self.column_track.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE)
self.column_track.set_property("resizable", True) self.column_track.set_property("resizable", False)
self.treeview.append_column(self.column_track) self.treeview.append_column(self.column_track)
self.column_title = Gtk.TreeViewColumn(_("Title"), renderer_text, text=1) self.column_title = Gtk.TreeViewColumn(_("Title"), renderer_text, text=1)
@ -714,7 +714,7 @@ class TrackView(Gtk.Box):
self.column_duration = Gtk.TreeViewColumn(_("Length"), renderer_text, text=4) self.column_duration = Gtk.TreeViewColumn(_("Length"), renderer_text, text=4)
self.column_duration.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE) self.column_duration.set_sizing(Gtk.TreeViewColumnSizing.AUTOSIZE)
self.column_duration.set_property("resizable", True) self.column_duration.set_property("resizable", False)
self.treeview.append_column(self.column_duration) self.treeview.append_column(self.column_duration)
#scroll #scroll