TreeView.insertColumnWithDataFunc
int insertColumnWithDataFunc(int position, string title, gtk.cell_renderer.CellRenderer cell, gtk.types.TreeCellDataFunc func)Convenience function that inserts a new column into the [gtk.tree_view.TreeView] with the given cell renderer and a [gtk.types.TreeCellDataFunc] to set cell renderer attributes (normally using data from the model). See also [gtk.tree_view_column.TreeViewColumn.setCellDataFunc], [gtk.tree_view_column.TreeViewColumn.packStart]. If tree_view has “fixed_height” mode enabled, then the new column will have its “sizing” property set to be GTK_TREE_VIEW_COLUMN_FIXED.
Parameters
position | Position to insert, -1 for append |
title | column title |
cell | cell renderer for column |
func | function to set attributes of cell renderer |
Returns
number of columns in the tree view post-insert
Deprecated
Use [gtk.list_view.ListView] or [gtk.column_view.ColumnView] instead