[Haskell] ANN: Gtk2hsGenerics
Michael Dever
michael.dever2 at mail.dcu.ie
Sun Jul 5 09:43:53 EDT 2009
Hi all,
Apologies if this goes through twice.
I extracted some functions from working on haskellfm, and made them a
bit generic. There's no new functionality in this, but some handy
functions that I found useful while working on it. They take some of
the pain out extracting information from stores and adding more
information in.
The modules are:
Graphics.UI.Gtk.Generics.ListStore:
Functionality for:
Repopulating an existing ListStore with a list of new data.
Obtaining an element from a ListStore, identified by a TreePath.
Prepending/Appending a ListStore with another list.
Graphics.UI.Gtk.Generics.TreeStore:
Functionality for:
Obtaining all the objects from a TreeStore that correspond to a
TreePath.
Finding a TreePath to match the elements in a supplied list.
Graphics.UI.Gtk.Generics.TreeView
*At the moment this only applies to a TreeView with ListStore.*
Functionality for:
Getting a single selection from a TreeView containing a ListStore.
Getting multiple selections from a TreeView containing a ListStore.
Applying a function to a single selection of a TreeView containing a
ListStore.
Applying a function across multiple selections from a TreeView
containing a ListStore.
The package is available on Hackage at:
http://hackage.haskell.org/package/Gtk2hsGenerics-0.1
Regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell/attachments/20090705/ef5e135b/attachment.html
More information about the Haskell
mailing list