Package: gtk

Function gtk:tree-sortable-sort-column-id

Lambda List

gtk:tree-sortable-sort-column-id (sortable)

Syntax

(gtk:tree-sortable-sort-column-id sortable) => column, order
(setf (gtk:tree-sortable-sort-column-id sortable) column)
(setf (gtk:tree-sortable-sort-column-id sortable) '(column order))

Arguments

sortable -- a gtk:tree-sortable object
column -- an integer with the sort column ID
order -- a value of the gtk:sort-type enumeration

Details

The gtk:tree-sortable-sort-column-id function returns the current sort column ID and the sort order. The (setf gtk:tree-sortable-sort-column-id) function sets the sort column ID and the sort order. If no sort order is given, the sort order is set to the default value :ascending.

The sortable will resort itself to reflect this change, after emitting a "sort-column-changed" signal. The column argument may either be a regular column ID, or one of the following special values: gtk:+tree-sortable-default-sort-column-id+ or gtk:+tree-sortable-unsorted-sort-column-id+.

Warning

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

See also

#2024-5-9