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));
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.
Signals
Signals inherited from GtkSorter (1)
Gtk.Sorter::changed
Emitted whenever the sorter changed.
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.