Fixed lists columns addition on first start.
This commit is contained in:
parent
6de1359e5d
commit
50dc62605b
@ -368,8 +368,11 @@ func (m *MainWindow) InitializeTabs() {
|
|||||||
col.SetSortColumnId(position_int)
|
col.SetSortColumnId(position_int)
|
||||||
col.SetReorderable(true)
|
col.SetReorderable(true)
|
||||||
col.SetResizable(true)
|
col.SetResizable(true)
|
||||||
col.SetSizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
// GtkTreeViewColumn.SetFixedWidth() accepts only positive integers.
|
||||||
col.SetFixedWidth(width_int)
|
if width_int > 1 {
|
||||||
|
col.SetSizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
|
col.SetFixedWidth(width_int)
|
||||||
|
}
|
||||||
m.column_pos["Servers"][name] = position_int
|
m.column_pos["Servers"][name] = position_int
|
||||||
all_servers_columns_to_append[position_int] = col
|
all_servers_columns_to_append[position_int] = col
|
||||||
}
|
}
|
||||||
@ -441,8 +444,11 @@ func (m *MainWindow) InitializeTabs() {
|
|||||||
col.SetSortColumnId(position_int)
|
col.SetSortColumnId(position_int)
|
||||||
col.SetReorderable(true)
|
col.SetReorderable(true)
|
||||||
col.SetResizable(true)
|
col.SetResizable(true)
|
||||||
col.SetSizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
// GtkTreeViewColumn.SetFixedWidth() accepts only positive integers.
|
||||||
col.SetFixedWidth(width_int)
|
if width_int > 1 {
|
||||||
|
col.SetSizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||||
|
col.SetFixedWidth(width_int)
|
||||||
|
}
|
||||||
m.column_pos["Favorites"][name] = position_int
|
m.column_pos["Favorites"][name] = position_int
|
||||||
fav_servers_columns_to_append[position_int] = col
|
fav_servers_columns_to_append[position_int] = col
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user