From: Duncan C. <dun...@wo...> - 2006-01-17 22:45:18
|
Tue Jan 17 02:37:29 PST 2006 Duncan Coutts <du...@co...> * Reverse the logical value of the TreeView search predicate. From the TreeView's C API docs: Note the return value is reversed from what you would normally expect, though it has some similarity to strcmp() returning 0 for equal strings. So for a Haskell predicate returning bool, we must invert the value. hunk ./gtk/Graphics/UI/Gtk/TreeList/TreeView.chs.pp 1028 - liftM fromBool $ pred (fromIntegral col) key iter) + liftM (fromBool.not) $ pred (fromIntegral col) key iter) |