It clears the tree_model_sort of any cached iterators that haven't been reffed with gtk_tree_model_ref_node(). This might be useful if the child model being sorted is static (and doesn't change often) and there has been a lot of unreffed access to nodes. As a side effect of this function, all unreffed iters will be invalid.
Converts child_path to a path relative to tree_model_sort .
That is, child_path points to a path in the child model. The returned path will point to the same row in the sorted model. If child_path isn't a valid path on the child model, then 0 is returned.
Converts sorted_path to a path on the child model of tree_model_sort .
That is, sorted_path points to a location in tree_model_sort . The returned path will point to the same location in the model not being sorted. If sorted_path does not point to a location in the child model, 0 is returned.
true if the iter is valid, false if the iter is invalid.
Since: 2.2.
void Gtk::TreeModelSort::reset_default_sort_func
(
)
This resets the default sort function to be in the 'unsorted' state.
That is, it is in the same order as the child model. It will re-sort the model to be in the same order as the child model only if the Gtk::TreeModelSort is in 'unsorted' state.