Package: gtk

Function gtk-cell-layout-add-attribute

Lambda List

gtk-cell-layout-add-attribute (layout cell attribute column)

Arguments

layout -- a gtk-cell-layout object
cell -- a gtk-cell-renderer object
attribute -- a string with an attribute on the renderer
column -- an integer with the column position on the model to get the attribute from

Details

Adds an attribute mapping to the list in layout.

The argument column is the column of the model to get a value from, and attribute is the parameter on cell 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.
 

See also

2021-3-13