diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-02-09 19:17:19 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-02-09 19:32:07 +0100 |
commit | cf751f7081113deadedaa3abaa43eac0b4fac5a7 (patch) | |
tree | 227ee7266b99d5df261aa227b19f56e4973da779 /src | |
parent | 5ebb6220aede0ab35d6ad174dce8bf011b2c43be (diff) | |
download | msec-cf751f7081113deadedaa3abaa43eac0b4fac5a7.tar msec-cf751f7081113deadedaa3abaa43eac0b4fac5a7.tar.gz msec-cf751f7081113deadedaa3abaa43eac0b4fac5a7.tar.bz2 msec-cf751f7081113deadedaa3abaa43eac0b4fac5a7.tar.xz msec-cf751f7081113deadedaa3abaa43eac0b4fac5a7.zip |
treeview.insert_column_with_attributes() doesn't return the column anymore
Diffstat (limited to 'src')
-rwxr-xr-x | src/msec/msecgui.py | 6 |
1 files changed, 4 insertions, 2 deletions
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) |