aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/msec/msecgui.py6
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)