From: Duncan C. <dun...@wo...> - 2005-11-11 18:00:52
|
On Fri, 2005-11-11 at 17:38 +0000, Keith Hanna wrote: > All fine and sunny now! > > I downloaded the Developer version, and repeated the installation, and it > works. > > I tried it out on the stripped down GUI I posted on my Pivotal web site. It > took objection to the use of the variables x, y and button (which it > asserts are no longer bound), so I assume this is just a minor change in the > API. In 0.9.10 we changed these to eventX, eventY, event${etc} since before that we were stealing rather generic names 'x', 'y' etc which was annoying. > After removal of these variables, it worked fine. I will remove use of > them from the demo (it won't lose much functionality), so that it will be > able to work with either the 9.8 or 9.10 version. As of 0.9.10 we now install a file which one can #include and which gives the gtk2hs version (as well as the gtk version and the gtk2hs packages avaiable). That doesn't help you for 0.9.8/0.9.10 compatability of course. > I also tried the CairoDrawing demo from the Cairo announcement. I assume (?) > that it's meant to be loaded by ghci (not by ghc). When I tried it, however, > it threw an error message (below). Sadly Gtk2Hs does not work with GHCi on Windows. The details are here: http://sourceforge.net/mailarchive/message.php?msg_id=11297970 I've been talking to one of the GHC devs about getting this fixed. You can try the other cairo demos that come with Gtk2Hs. There is also this small demo: http://www.dd.chalmers.se/~bojohan/exjobb/src/Draw.hs And a slightly bigger program using cairo: http://haskell.galois.com/~paolo/nymphaea/ > Anyway, my next battle will be to get hs-plugins working with ghc 6.4.1. > And that may be rather more troublesome. . . The latest darcs version of hs-plugins works for me with ghc-6.4.1 on linux. Duncan |