Package: gtk

Callback gtk-tree-cell-data-func

Details

A function to set the properties of a cell instead of just using the straight mapping between the cell and the model. This is useful for customizing the cell renderer. For example, a function might get an integer from the tree model, and render it to the "text" attribute of "cell" by converting it to its written equivilent. This is set by calling the function gtk-tree-view-column-set-cell-data-func.
 lambda (column renderer model iter)  
column
A gtk-tree-view-column object.
renderer
The gtk-cell-renderer object that is being rendered by the tree view column.
model
The gtk-tree-model object being rendered.
iter
A gtk-tree-iter object of the current row rendered.
 

See also

2021-2-24