Gtk.TreeListRowSorter¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.TreeListRowSorter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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
:``c 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)); ``
- classmethod new(sorter)[source]¶
- Parameters:
sorter (
Gtk.Sorter
orNone
) – aGtkSorter
- Returns:
a new
GtkTreeListRowSorter
- Return type:
Create a special-purpose sorter that applies the sorting of sorter to the levels of a
GtkTreeListModel
.Note that this sorter relies on [property`Gtk`.TreeListModel:passthrough] being
False
as it can only sort [class`Gtk`.TreeListRow]s.
- get_sorter()[source]¶
- Returns:
the sorter used
- Return type:
Gtk.Sorter
orNone
Returns the sorter used by self.
- set_sorter(sorter)[source]¶
- Parameters:
sorter (
Gtk.Sorter
orNone
) – The sorter to use
Sets the sorter to use for items with the same parent.
This sorter will be passed the [property`Gtk`.TreeListRow:item] of the tree list rows passed to self.
Property Details¶
- Gtk.TreeListRowSorter.props.sorter¶
- Name:
sorter
- Type:
- Default Value:
- Flags:
The underlying sorter