[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lgi / gtk : Coredump when trying to add a column in a treelist
- From: Laurent Faillie <l_faillie@...>
- Date: Tue, 09 Apr 2013 00:49:49 +0200
I tried also the following code :
local tree = {
id = 'list',
model = list,
Gtk.TreeViewColumn {
title = "Ignore it ?",
sizing = 'FIXED',
fixed_width = 70,
{
Gtk.CellRendererToggle { id = 'ignored' },
}
}
}
for i=1, #current_list do
table:insert( tree,
Gtk.TreeViewColumn(
{
title = current_list[i],
{
Gtk.CellRendererText {}
}
}
)
)
end
report = Gtk.ScrolledWindow {
shadow_type = 'ETCHED_IN',
hscrollbar_policy = 'NEVER',
expand = true,
Gtk.TreeView(tree)
}
But as soon as I add the for loop, I got again a core dump :(