Package: gtk

Function gtk:tree-view-column-add-attribute

Lambda List

gtk:tree-view-column-add-attribute (column renderer attribute position)

Arguments

column -- a gtk:tree-view-column object
renderer -- a gtk:cell-renderer object to set attributes on
attribute -- a string with an attribute on the cell renderer
position -- an integer with the column position on the model

Details

Adds an attribute mapping to the list in the tree view column. The column argument is the column of the model to get a value from, and the attribute is the parameter on the cell renderer to be set from the value. So for example if column 2 of the model contains strings, you could have the "text" attribute of a gtk:cell-renderer-text object get its values from column 2.

Warning

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

See also

#2024-3-8