Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-2.0.gir |
C documentation: | GtkTreeSortable |
Interface : | TreeSortable |
Implementations: | Gtk.ListStore, Gtk.TreeModelSort, Gtk.TreeStore |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
Fills in sort_column_id and order with the current sort column and the order.
Fills in sort_column_id and order with the current sort column and the order. It returns TRUE unless the sort_column_id is GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID or GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID. column ids.
|
Gtk.TreeSortable | |
has_default_sort_func
()
:
Boolean
Returns TRUE if the model has a default sort function.
Returns TRUE if the model has a default sort function. This is used primarily by GtkTreeViewColumns in order to determine if a model can go back to the default state, or not.
|
Gtk.TreeSortable | |
Sets the default comparison function used when sorting to be sort_func.
Sets the default comparison function used when sorting to be sort_func. If the current sort column id of sortable is GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, then the model will sort using this function. If sort_func is NULL, then there will be no default comparison function. This means that once the model has been sorted, it can't go back to the default state. In this case, when the current sort column id of sortable is GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID, the model will be unsorted.
|
Gtk.TreeSortable | |
Sets the current sort column to be sort_column_id.
Sets the current sort column to be sort_column_id. The sortable will resort itself to reflect this change, after emitting a GtkTreeSortable::sort-column-changed signal. sortable may either be a regular column id, or one of the following special values:
|
Gtk.TreeSortable | |
Sets the comparison function used when sorting to be sort_func.
Sets the comparison function used when sorting to be sort_func. If the current sort column id of sortable is the same as sort_column_id, then the model will sort using this function.
|
Gtk.TreeSortable | |
sort_column_changed
()
:
none
Emits a GtkTreeSortable::sort-column-changed signal on sortable.
Emits a GtkTreeSortable::sort-column-changed signal on sortable.
|
Gtk.TreeSortable |
Event | Defined By | |
---|---|---|
sort_column_changed (TreeSortable self)
:
none
The ::sort-column-changed signal is emitted when the sort column or sort order of sortable is changed.
The ::sort-column-changed signal is emitted when the sort column or sort order of sortable is changed. The signal is emitted before the contents of sortable are resorted.
|
Gtk.TreeSortable |