Package: gtk

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

Lambda List

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

Arguments

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

Details

Adds an attribute mapping to the model in the tree view column. The column argument is the column of the model to get a value from, and the attribute is the property 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 property of a gtk:cell-renderer-text object get its values from column 2.
 

See also

2024-3-15