lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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 :(