Writing concurrent programs.

November 4th, 2009

A note of caution: Using Gtk2Hs together with the -threaded ghc is currently not supported. The reason is that GHC’s garbage collector might free Xlib or Win32 objects using an OS thread different to the one that is used to execute all other Gtk+ functions. The result will be a program that occasionally fails with an Xlib error or a crash on Windows. We are working on fixing this.

Note: this is all now fixed in the current darcs repository.

Gtk2HS 0.10.1 Released

May 10th, 2009

Gtk2HS 0.10.1 has been released! This release includes mostly bug fixes and other small improvements. Most notably, GHC 6.10.1 is now supported.

The source tarball may be downloaded from:

A Windows installer will be provided soon.

Mickinator File Manager

March 10th, 2009

Michael Dever is developing a file manager in Gtk2Hs and is blogging about it. He wrote a little demo that shows how to add rows to a ListStore on the fly, namely when the user expands and collapses a link. While there are other ways to do this (namely by implementing your own store using CustomStore) his solution is certainly much simpler. A screenshot of the demo can be found here.

Gtk2Hs version 0.10.0 released

February 11th, 2009

The new release finishes many features that were in the works. Novelties include:

  • support for GHC 6.10
  • new bindings to GIO and GtkSourceView 2.0
  • full switch to the new model-view implementation using Haskell models for storage
  • support for many more model-based widgets such as IconView and an updated binding to ComboBox
  • full drag-and-drop support
  • better support for Attributes in Pango
  • replaced Event for EventM monad, thereby improving efficiency and convenience
  • functions for interaction between Cairo and Pixbuf (i.e. it is possible to mix vector graphics and pixel-based image manipulation routines)
  • lots of bug fixes, code cleanups, and portability improvements

With this release, the bindings to GnomeVFS and GtkSourceView-1.0 have been deprecated. The TreeList modules have been deprecated from the Gtk+ bindings.

Source and Win32 binaries are available on the Sourceforge page

Thanks to everyone who submitted bug fixes and features this time around!