changeset 9c47072dbb68 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=9c47072dbb68 description: better behaviour of column width in ACE. Fixes #7446
diffstat:
src/advanced_configuration_window.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r b7170b76360d -r 9c47072dbb68 src/advanced_configuration_window.py --- a/src/advanced_configuration_window.py Sun Sep 15 12:11:18 2013 +0200 +++ b/src/advanced_configuration_window.py Sun Sep 15 12:16:55 2013 +0200 @@ -117,13 +117,14 @@ 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)