Package: gtk
Function gtk:tree-view-insert-column-with-attributes
Lambda Listgtk:tree-view-insert-column-with-attributes (view pos title renderer &rest attributes) ArgumentsReturn ValueThe integer for the number of columns in view after insertion. Details Creates a new gtk:tree-view-column object and inserts it into the tree view at pos. If the pos argument is -1, then the newly created column is inserted at
the end. The column is initialized with the attributes given. If the tree view has the fixed-height-mode property enabled, then the new column will have its sizing property set to be the :fixed value. Examples
(let* ((model (create-and-fill-model-simple))
(view (gtk:tree-view-new-with-model model))
(renderer (gtk:cell-renderer-text-new)))
(gtk:tree-view-insert-column-with-attributes view
0
"Title"
renderer
"text" 0
"weight" 5
"foreground" 6)
... ) | See also |
2025-07-15