From: Axel S. <A....@ke...> - 2007-01-11 13:23:04
|
Hi David, On Thu, 2007-01-11 at 11:51 +1100, David Wang wrote: > Hi, > > I've attached my bindings for most of the GtkTreeModelFilter > functions, which is heavily based on the GtkTreeModelSort code. If > all goes well, it'll produce some nice haddock documentation too. > I've also included a little test. Thanks for the effort. We are currently migrating the tree/list widgets to use Haskell data structures as store. As such, I don't know how the TreeModelFilter module fits in. I think the way the store is implemented is an orthogonal issue, but certainly your example would have to be reworked in order to use the new interface. We intend to deprecate the old interface after the next release. We'll see if your module fits in. Did you use the apiGen program? It can do the easy functions automatically and gives you a skeleton for those functions that it can't do automatically (like the two functions below). > There are still a couple of functions that I haven't bothered with: > > gtk_tree_model_filter_set_visible_func > gtk_tree_model_filter_set_modify_func > > Also, the widget is only available since 2.4, although I don't know > where exactly to add that in. Since the whole module is only available from 2.4 onwards, this comment should be at the beginning, i.e. in the module descriptions. We then use ifdefs to comment out all functions if Gtk2Hs is complied against Gtk+ before 2.4. Thanks for your contribution. We'll put it in before the release (if it works with the new API). We could put it in with the old API, but that's probably not of much benefit to people. Axel. |