Package: gtk

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

Lambda List

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

Arguments

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

Return Value

The integer with 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 function to set cell renderer attributes (normally using data from the model). See also the gtk:tree-view-column-set-cell-data-func and gtk:tree-view-column-pack-start functions. If view has the fixed-height-mode property enabled, then the new column will have its sizing property set to be the :fixed value.

Warning

The gtk:tree-view implementation is deprecated since 4.10. Please do not use it in newly written code.
 

See also

2024-3-10