i currently use gtk2hs with libglade (and glade). i understand that the gtkbuilder allows more constructs than libglade. how to use gtkbuilder in gtk2hs? i see that John Millikin has posted a patch for gtk2hs - but i cannot find it and no documentation for its use? can anyone point me to a patched version of gtk2hs and some examples? thank you! andrew
"Andrew U. Frank" <frank@geoinfo.tuwien.ac.at> writes:
i currently use gtk2hs with libglade (and glade). i understand that the gtkbuilder allows more constructs than libglade. how to use gtkbuilder in gtk2hs? i see that John Millikin has posted a patch for gtk2hs - but i cannot find it and no documentation for its use? can anyone point me to a patched version of gtk2hs and some examples? You can see demo program under `demo/gtkbuilder` of gtk2hs. Just do `make`, then run ./gtkbuilder
Cheers, -- Andy
My patch was accepted into gtk2hs trunk. It should be present in the next release, or you can clone the in-development version with Darcs (see < http://www.haskell.org/gtk2hs/development/ >). The Haskell module can be viewed at < http://code.haskell.org/gtk2hs/gtk/Graphics/UI/Gtk/Builder.chs.pp >; the API is based directly on the C GtkBuilder API, documented at < http://library.gnome.org/devel/gtk/unstable/GtkBuilder.html >. On Sun, Mar 14, 2010 at 09:34, Andrew U. Frank <frank@geoinfo.tuwien.ac.at> wrote:
i currently use gtk2hs with libglade (and glade). i understand that the gtkbuilder allows more constructs than libglade. how to use gtkbuilder in gtk2hs? i see that John Millikin has posted a patch for gtk2hs - but i cannot find it and no documentation for its use? can anyone point me to a patched version of gtk2hs and some examples?
thank you! andrew _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Andrew U. Frank -
Andy Stewart -
John Millikin