Package: gtk

Accessor gtk:column-view-sorter

Lambda List

gtk:column-view-sorter (object)

Syntax

(gtk:column-view-sorter object) => sorter

Arguments

object -- a gtk:column-view object
sorter -- a gtk:sorter object

Details

Accessor of the sorter slot of the gtk:column-view class. The gtk:column-view-sorter function returns a special sorter that reflects the users sorting choices in the column view. To allow users to customizable sorting by clicking on column headers, this sorter needs to be set on the sort model underneath the model that is displayed by the view. See the gtk:column-view-column-sorter function for setting up per-column sorting.

Examples

Set the special sorter on the sort model underneath the model that is displayed by the view:
(let* (;; Get the special sorter from the column view
       (sorter (gtk:column-view-sorter view))
       ;; Create a new selection model from a new sort list model
       (model (gtk:sort-list-model-new store sorter))
       (selection (gtk:no-selection-new model)))
  ;; Set the selection as model for the column view
  (setf (gtk:column-view-model view) selection)
  ... )    
 

See also

2025-4-25