TreeListRowSorter

gtk.tree_list_row_sorter.TreeListRowSorter is a special-purpose sorter that will apply a given sorter to the levels in a tree.

Here is an example for setting up a column view with a tree model and a GtkTreeListSorter:

column_sorter = gtk_column_view_get_sorter (view);
sorter = gtk_tree_list_row_sorter_new (g_object_ref (column_sorter));
sort_model = gtk_sort_list_model_new (tree_model, sorter);
selection = gtk_single_selection_new (sort_model);
gtk_column_view_set_model (view, G_LIST_MODEL (selection));

Constructors

this
this(gtk.sorter.Sorter sorter)

Create a special-purpose sorter that applies the sorting of sorter to the levels of a gtk.tree_list_model.TreeListModel.

Members

Functions

getSorter
gtk.sorter.Sorter getSorter()

Returns the sorter used by self.

setSorter
void setSorter(gtk.sorter.Sorter sorter)

Sets the sorter to use for items with the same parent.

Inherited Members

From Sorter

changed
void changed(gtk.types.SorterChange change)

Notifies all users of the sorter that it has changed.

compare
gtk.types.Ordering compare(gobject.object.ObjectG item1, gobject.object.ObjectG item2)

Compares two given items according to the sort order implemented by the sorter.

getOrder
gtk.types.SorterOrder getOrder()

Gets the order that self conforms to.

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.