From adce366c5381f97b7d23dc7cb15ae4c7f93d5d53 Mon Sep 17 00:00:00 2001 From: Denis Fomin <fominde@gmail.com> Date: Sat, 31 Aug 2013 09:57:13 +0400 Subject: [PATCH] Set 'sizing' to Type column in ACE. Make 'Value' column expandable. Fixes #7446 --- src/advanced_configuration_window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/advanced_configuration_window.py b/src/advanced_configuration_window.py index f4823cfa8e..f92999bf61 100644 --- a/src/advanced_configuration_window.py +++ b/src/advanced_configuration_window.py @@ -116,13 +116,13 @@ 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.set_property('expand',True) renderer_text = gtk.CellRendererText() - treeview.insert_column_with_attributes(-1, _('Type'), + col = treeview.insert_column_with_attributes(-1, _('Type'), renderer_text, text = 2) + col.set_property('sizing',gtk.TREE_VIEW_COLUMN_AUTOSIZE) treeview.set_model(self.modelfilter) -- GitLab