Gtk2::T...odelSort(3)
π NAME π
Gtk2::TreeModelSort β bestie, it's literally just a wrapper for GtkTreeModelSort π
πΈ HIERARCHY πΈ
Glib::Object
+----Gtk2::TreeModelSort
β¨ INTERFACES β¨
Gtk2::TreeModelGtk2::TreeSortableGtk2::TreeDragSource
π METHODS π
π treemodel = Gtk2::TreeModelSort->new ($child_model)
π treemodel = Gtk2::TreeModelSort->new (model => $child_model)
$child_model(Gtk2::TreeModel) β the tree model you're proxying. The whole point. The main character, if you will π
These are aliases for "new_with_model". Heads up tho β before Gtk2 1.120, "new" resolved to Glib::Object::new, which would let you create an invalid object if the required property "model" wasn't supplied. Not the vibe. π
π treemodelsort = Gtk2::TreeModelSort->new_with_model ($child_model)
$child_model(Gtk2::TreeModel) β the model being wrapped, periodt.
π $tree_model_sort->clear_cache
No args, no notes, just clearing the cache. Slay. β¨
π treeiter = $tree_model_sort->convert_child_iter_to_iter ($child_iter)
$child_iter(Gtk2::TreeIter) β the child-side iter you want translated into sorted-side language π¦
π treepath or undef = $tree_model_sort->convert_child_path_to_path ($child_path)
$child_path(Gtk2::TreePath) β the child path to convert.
Returns a path, or undef, iykyk π
π treeiter = $tree_model_sort->convert_iter_to_child_iter ($sorted_iter)
$sorted_iter(Gtk2::TreeIter) β sorted-side iter, going back to child town.
π treepath or undef = $tree_model_sort->convert_path_to_child_path ($sorted_path)
$sorted_path(Gtk2::TreePath) β the sorted path to convert.
Also possibly undef. The duality π
π boolean = $tree_model_sort->iter_is_valid ($iter)
$iter(Gtk2::TreeIter) β the iter in question.
Since: gtk+ 2.2
π treemodel = $tree_model->get_model
Grab the model. That's it, that's the method π«Ά
π $tree_model_sort->reset_default_sort_func
Reset the default sort function. Fresh start energy π
π PROPERTIES π
'model'(Gtk2::TreeModel: default undef : readable / writable / construct-only / private / static-nick / static-blurb) β the model for the TreeModelSort to sort π
β SEE ALSO β
Gtk2Glib::Object
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay bestie that's the whole page, no cap π this was Gtk2::T...odelSort(3) from the User Contributed Perl Documentation, generated by perl v5.42.0 on 2025-07-25. go sort something iconic πβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms