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 619500c3d4
commit b643e00f89
1 changed files with 2 additions and 0 deletions

View File

@ -117,7 +117,9 @@ 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)
renderer_text = Gtk.CellRendererText()
col = Gtk.TreeViewColumn(_('Type'), renderer_text, text = 2)