better behaviour of column width in ACE. Fixes #7446

This commit is contained in:
Yann Leboulanger 2013-09-15 12:16:55 +02:00
parent 0d8eedbdca
commit 7d94faa7d0
1 changed files with 4 additions and 3 deletions

View File

@ -117,13 +117,14 @@ class AdvancedConfigurationWindow(object):
col.set_cell_data_func(renderer_text, self.cb_value_column_data)
col.props.resizable = True
# set max width only for initializing the treeview.
col.set_max_width(250)
gobject.idle_add(col.set_max_width, -1)
col.props.expand = True
col.props.sizing = Gtk.TreeViewColumnSizing.FIXED
renderer_text = Gtk.CellRendererText()
col = Gtk.TreeViewColumn(_('Type'), renderer_text, text = 2)
treeview.insert_column(col, -1)
col.props.expand = True
col.props.sizing = Gtk.TreeViewColumnSizing.FIXED
treeview.set_model(self.modelfilter)