[Gtk-sharp-list] Sorting a NodeStore/NodeView

Mike Kestner mkestner at gmail.com
Fri Sep 12 20:04:06 EDT 2008


On Thu, 2008-09-11 at 17:03 -0400, Adam Tauno Williams wrote:
> Can a NodeStore/NodeView be sorted?  In a TreeView I'd call the  
> SetSortFunc on the model (like a Gtk.ListStore).  But NodeStore  
> doesn't have any obvious way to set a sort function.

There's an open bug report to add sorting to NodeStore.  It has a
partial patch from Bradford Hovinen, but I never got the time to merge
it up and finish it.   

https://bugzilla.novell.com/show_bug.cgi?id=319546

Now that we have GInterface registration, I think I'd like to move
NodeStore to use an internal managed TreeModel implementation and get
rid of the glue model it currently utilizes.  Then the TreeSortable
interface could be implemented in managed code as well to provide
sorting on the NodeStore.

Maybe I'll make that an evening and weekend project, or of course, I'd
be happy to work with anyone who wants to take a stab at it and provide
a patch.


-- 
Mike Kestner <mkestner at gmail.com>



More information about the Gtk-sharp-list mailing list