Compiling with ghc 6.12

January 18th, 2010

Duncan posted a patch that allows compilation of Gtk2Hs with ghc 6.12. However, you need to specify –disable-split-objs option when running configure as ghc 6.12 puts object files in directories where our Makefile does not expect them.

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.