Package: gtk

Function gtk:tree-view-column-new-with-attributes

Lambda List

gtk:tree-view-column-new-with-attributes (title renderer &rest attributes)

Arguments

title -- a string with the title to set the header to
renderer -- a gtk:cell-renderer object
attributes -- pairs of attribute and colnum
attribute -- a string with the name of a property of renderer
colnum -- an integer with the column in the model with the value for attribute

Return Value

A newly created gtk:tree-view-column object.

Details

Creates a new tree view column with a number of default values. This is equivalent to calling the gtk:tree-view-column-title, gtk:tree-view-column-pack-start, and gtk:tree-view-column-set-attributes functions on the newly created gtk:tree-view-column object.

Examples

(let* ((renderer (gtk:cell-renderer-text-new))
       (column (gtk:tree-view-column-new-with-attributes "Example"
                                                         renderer
                                                         "text" 0
                                                         "foreground" 1)))
  ... )    
 

See also

2024-3-15