Class

GtkTreeListRowSorter

Description [src]

final class Gtk.TreeListRowSorter : Gtk.Sorter {
  /* No available fields */
}

GtkTreeListRowSorter 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));

Hierarchy

hierarchy this GtkTreeListRowSorter ancestor_0 GtkSorter ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Constructors

gtk_tree_list_row_sorter_new

Create a special-purpose sorter that applies the sorting of sorter to the levels of a GtkTreeListModel.

Instance methods

gtk_tree_list_row_sorter_get_sorter

Returns the sorter used by self.

gtk_tree_list_row_sorter_set_sorter

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

Methods inherited from GtkSorter (3)
gtk_sorter_changed

Notifies all users of the sorter that it has changed.

gtk_sorter_compare

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

gtk_sorter_get_order

Gets the order that self conforms to.

Properties

Gtk.TreeListRowSorter:sorter

The underlying sorter.

Class structure

struct GtkTreeListRowSorterClass {
  GtkSorterClass parent_class;
  
}
Class members
parent_class
GtkSorterClass
  No description available.