mirror of
https://github.com/lutris/lutris
synced 2024-11-02 11:48:38 +00:00
Accept None value for column width
This commit is contained in:
parent
66c77a061e
commit
fbf532c172
1 changed files with 3 additions and 3 deletions
|
@ -327,19 +327,19 @@ class GameListView(Gtk.TreeView, GameView):
|
|||
name_cell.set_padding(5, 0)
|
||||
column = self.set_column(name_cell, "Name", COL_NAME)
|
||||
width = settings.read_setting('name_column_width', 'list view')
|
||||
column.set_fixed_width(int(width) or 200)
|
||||
column.set_fixed_width(int(width) if width else 200)
|
||||
self.append_column(column)
|
||||
column.connect("notify::width", self.on_column_width_changed)
|
||||
|
||||
column = self.set_column(default_text_cell, "Year", COL_YEAR)
|
||||
width = settings.read_setting('year_column_width', 'list view')
|
||||
column.set_fixed_width(int(width) or 60)
|
||||
column.set_fixed_width(int(width) if width else 60)
|
||||
self.append_column(column)
|
||||
column.connect("notify::width", self.on_column_width_changed)
|
||||
|
||||
column = self.set_column(default_text_cell, "Runner", COL_RUNNER)
|
||||
width = settings.read_setting('runner_column_width', 'list view')
|
||||
column.set_fixed_width(int(width) or 100)
|
||||
column.set_fixed_width(int(width) if width else 100)
|
||||
self.append_column(column)
|
||||
column.connect("notify::width", self.on_column_width_changed)
|
||||
|
||||
|
|
Loading…
Reference in a new issue