force max width to 250px only when initializing the treeview. Fixes #7446

This commit is contained in:
Yann Leboulanger 2013-08-29 13:14:22 +02:00
parent 4d0005a9ab
commit ecbaa71e2f
1 changed files with 2 additions and 0 deletions

View File

@ -116,7 +116,9 @@ class AdvancedConfigurationWindow(object):
col.set_cell_data_func(renderer_text, self.cb_value_column_data) col.set_cell_data_func(renderer_text, self.cb_value_column_data)
col.props.resizable = True col.props.resizable = True
# set max width only for initializing the treeview.
col.set_max_width(250) col.set_max_width(250)
gobject.idle_add(col.set_max_width, -1)
renderer_text = gtk.CellRendererText() renderer_text = gtk.CellRendererText()
treeview.insert_column_with_attributes(-1, _('Type'), treeview.insert_column_with_attributes(-1, _('Type'),