[Gtk-sharp-list] Sorting a TreeView with a filter

Peter Johanson peter at peterjohanson.com
Fri Sep 12 16:36:14 EDT 2008

On Fri, Sep 12, 2008 at 08:13:46AM -0400, Adam Tauno Williams wrote:
> I have a rather complicated TreeView using a ListStore.  Filtering the
> view works,  but I'm so far unable to get sorting to work.  I have a
> sort object connected to the model and the filter object connected to
> the sort object;  I'm found very similair constructs in other projects

You need to filter, and *then* sort. This prevents sorting items you'll
end up filtering out anyways (speeds things up) and makes it so you have
a TreeSortable actually hooked up to the Gtk.TreeView.


More information about the Gtk-sharp-list mailing list