Package: gtk

Function gtk-tree-view-insert-column-with-data-func

Lambda List

gtk-tree-view-insert-column-with-data-func (view position title renderer func)

Arguments

view -- a gtk-tree-view widget
position -- an integer with the position to insert the new column in
title -- an string with the title to set the header to
renderer -- the gtk-cell-renderer object
func -- callback function to set attributes of cell renderer

Return Value

The number of columns in view after insertion.

Details

Convenience function that inserts a new column into the tree view with the given cell renderer and a gtk-tree-cell-data-func callback to set cell renderer attributes (normally using data from the model). See also the functions gtk-tree-view-column-set-cell-data-func, gtk-tree-view-column-pack-start. If view has the fixed-height-mode property enabled, then the new column will have its sizing property set to be :fixed.
 

See also

2021-2-26