gtk 0.13.0.1 → 0.13.0.2
raw patch · 2 files changed
+18/−3 lines, 2 files
Files
- Graphics/UI/Gtk/ModelView/TreeStore.hs +14/−0
- gtk.cabal +4/−3
Graphics/UI/Gtk/ModelView/TreeStore.hs view
@@ -102,6 +102,20 @@ -- * The given rose tree determines the initial content and may be the empty -- list. Each 'Tree' in the forest corresponds to one top-level node. --+-- * The TreeStore maintains the initially given Forest and aligns the 'TreePath'+-- bits to fit in 96-bit length 'TreeIter' storage.+--+-- * Additionally, a cache is used to achieve higher performance if operating on+-- recently used TreePaths.+--+-- * __Note:__ due to the limited amount of bits available in TreeIter storage, only +-- limited depth forests can be used with this implementation, the result of too deep+-- Forests is an undefined behaviour while trying to retrieve the deeply nested nodes.+-- For example: assuming the average requiement is 8 bits per tree level (max number of+-- children at the level is 255), then we can only use 12 levels deep trees (96/8) -+-- any further levels in a TreePath will not be encoded in the corresponding TreeIter+-- storage.+-- treeStoreNew :: Forest a -> IO (TreeStore a) treeStoreNew forest = treeStoreNewDND forest (Just treeStoreDefaultDragSourceIface)
gtk.cabal view
@@ -1,12 +1,12 @@ Name: gtk-Version: 0.13.0.1+Version: 0.13.0.2 License: LGPL-2.1 License-file: COPYING Copyright: (c) 2001-2010 The Gtk2Hs Team Author: Axel Simon, Duncan Coutts and many others Maintainer: gtk2hs-users@lists.sourceforge.net Build-Type: Custom-Cabal-Version: >= 1.8+Cabal-Version: >= 1.18 Stability: provisional homepage: http://projects.haskell.org/gtk2hs/ bug-reports: https://github.com/gtk2hs/gtk2hs/issues@@ -361,7 +361,8 @@ Graphics.UI.Gtk.Types Graphics.UI.Gtk.Signals - extensions: ForeignFunctionInterface+ default-language: Haskell98+ default-extensions: ForeignFunctionInterface c-sources: Graphics/UI/Gtk/ModelView/Gtk2HsStore.c Graphics/UI/Gtk/General/hsgthread.c -- Due to http://hackage.haskell.org/trac/ghc/ticket/781