<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi all,</div><div><br></div><div>Apologies if this goes through twice.</div><br>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.<br><br>The modules are:<br><br>Graphics.UI.Gtk.Generics.ListStore:<br><br>Functionality for:<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Repopulating an existing ListStore with a list of new data.<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Obtaining an element from a ListStore, identified by a TreePath.<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Prepending/Appending a ListStore with another list.<br><br>Graphics.UI.Gtk.Generics.TreeStore:<br><br>Functionality for:<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Obtaining all the objects from a TreeStore that correspond to a TreePath.<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Finding a TreePath to match the elements in a supplied list.<br><br>Graphics.UI.Gtk.Generics.TreeView<br><br>*At the moment this only applies to a TreeView with &nbsp;ListStore.*<br><br>Functionality for:<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Getting a single selection from a TreeView containing a ListStore.<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Getting multiple selections from a TreeView containing a ListStore.<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Applying a function to a single selection of a TreeView containing a ListStore.<br><span class="Apple-tab-span" style="white-space: pre; ">        </span>Applying a function across multiple selections from a TreeView containing a ListStore.<br><br>The package is available on Hackage at:<br><span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="http://hackage.haskell.org/package/Gtk2hsGenerics-0.1">http://hackage.haskell.org/package/Gtk2hsGenerics-0.1</a><br><span class="Apple-tab-span" style="white-space: pre; ">        </span><br><br>Regards,<br>Michael</body></html>