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 -- the 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 to get the attribute from

Details

Adds an attribute mapping to the list in the tree view column. The argument column 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 get its values from column 2.
 

See also

2021-2-24