[pygtk] sorting GenericTreeModels

Alberto Ruiz aruiz at gnome.org
Tue Aug 11 09:57:49 WST 2009


2009/8/11 Bryan Horvat <bhorvat3 at gmail.com>:
> I have a tree model that has been derived from GenericTreeModel, which I
> then wrap in a TreeModelSort.  When I'm running my program with gtk version
> 2.6, everything displays correctly.  However, when using version 2.10 or
> higher, only the top-level rows get displayed.  None of the child rows in my
> model get displayed at all.  I assume that this is due to my TreeModelSort
> object incorrectly sorting the items in my GenericTreeModel object, and
> creating "sorted paths" which don't exist, and which, thus, can't be
> displayed by the TreeView.  Or, at least, that's my only guess.  Has
> anything significant in TreeModelSort or TreeSortable changed between
> versions 2.6 and 2.10 that might be causing this?

Hi Bryan,
can you write a small test case for this please? Otherwise is hard to
tell what are you trying to do and reproduce the issue.

-- 
Cheers,
Alberto Ruiz


More information about the pygtk mailing list