> > In trying to port my code from NodeView to the more sophisticated > > TreeView so that I can use the TreeModelFilter > I was going to confirm your findings but I can't run your example code > without some further parts, namely Task, taskStore and ToDoFilter. Can you > post more code?
It might be easier to just come up with a different demo; this is all intertwined quite a bit - http://code.google.com/p/consonance/ Maybe this is enough.... taskStore is just: ListStore taskStore; taskStore = new ListStore(typeof(Task)); public class Task /* Bogus Task Object */ { public Task() {} public int ObjectId { get { return 1000; }} public bool IsToDo { get { return true; }} } pop some tasks in with: taskStore.AppendValues(new Task()); taskStore.AppendValues(new Task()); taskStore.AppendValues(new Task()); taskStore.AppendValues(new Task()); private bool ToDoFilter(Gtk.TreeModel _model, Gtk.TreeIter _iter) { Task task; Console.WriteLine("Filtering task for ToDo list"); task = (Task)_model.GetValue(_iter, 0); if (task == null) return false; if (task.IsToDo) return true; return false; }
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
