[Gtk-sharp-list] NodeStore/NodeView & filters

Adam Tauno Williams awilliam at whitemice.org
Mon Apr 2 19:09:30 EDT 2007


Is it possible to filter a NodeStore/NodeView in the same manner as with
a TreeFilter?

Of course, just trying to cast things doesn't work;  which was expected.

function(Gtk.NodeStore nodeStore, Gtk.NodeView toDoView)
{
  TreeModelFilter nodeFilter;
 
  nodeFilter = new Gtk.TreeModelFilter(nodeStore, null);	
  nodeFilter.VisibleFunc = 
    new Gtk.TreeModelFilterVisibleFunc(FilterToDo);
  toDoView.NodeStore = (NodeStore)nodeFilter;
}

Do I need to recode everything as a ListStore?

gtk-sharp2-2.8.3-33




More information about the Gtk-sharp-list mailing list