Skip to content
  • Matthias Clasen's avatar
    columnview: Add sorting · 66500a68
    Matthias Clasen authored
    This is a somewhat large commit that:
    
    - Adds GtkColumnViewSorter
    This is a special-purpose, private sorter implementation which sorts
    according to multiple sorters, allowing each individual sorter to be
    inverted. This will be used with clickable column view headers.
    
    - Adds a read-only GtkColumnView::sorter property
    The GtkColumnView creates a GtkColumnViewSorter at startup that it uses
    for this property.
    
    - Adds a writable GtkColumnViewColumn::sorter property
    This allows defining per-column sorters. Whenever an application sets a
    sorter for a column, the header becomes clickable and whenever
    a header is clicked, that column's sorter is prepended to the list of
    sorters, unless it is already the first sorter, in which case we invert
    its order. No column can be in the list more than once.
    66500a68