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 attributes

Return Value

The 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)))
  ... )  

Warning

The gtk:tree-view-column implementation is deprecated since 4.10. Please do not use it in newly written code.
 

See also

2024-5-4