From cf751f7081113deadedaa3abaa43eac0b4fac5a7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 9 Feb 2014 19:17:19 +0100 Subject: treeview.insert_column_with_attributes() doesn't return the column anymore --- src/msec/msecgui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py index 70612a4..70e0057 100755 --- a/src/msec/msecgui.py +++ b/src/msec/msecgui.py @@ -506,7 +506,8 @@ class MsecGui: renderer = Gtk.CellRendererText() renderer.set_property('wrap-width', 400) renderer.set_property('wrap-mode', Pango.WrapMode.WORD_CHAR) - column = treeview.insert_column_with_attributes(-1, _('Description'), renderer, text=self.COLUMN_DESCR, weight=self.COLUMN_CUSTOM) + column = Gtk.TreeViewColumn(_('Description'), renderer, text=self.COLUMN_DESCR, weight=self.COLUMN_CUSTOM) + treeview.append_column(column) column.set_expand(True) #treeview.append_column(column) @@ -844,7 +845,8 @@ class MsecGui: renderer = Gtk.CellRendererText() renderer.set_property('wrap-width', 600) renderer.set_property('wrap-mode', Pango.WrapMode.WORD_CHAR) - column = treeview.insert_column_with_attributes(-1, _('Description'), renderer, text=self.COLUMN_DESCR, weight=self.COLUMN_LEVEL_CURRENT) + column = Gtk.TreeViewColumn(_('Description'), renderer, text=self.COLUMN_DESCR, weight=self.COLUMN_LEVEL_CURRENT) + treeview.append_column(column) column.set_expand(True) #treeview.append_column(column) -- cgit v1.2.1