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 column argument 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.

Warning

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

See also

#2024-7-8