
Jefferson Heard wrote:
Sorry. In a hurry, and I don't have a lot of time to read the message, so if I'm offering a lot of info you already have, I apologize. The best thing to do is to allocate either a pixmap or Gtk.DrawingArea -- you can then use widgetGetDrawable to get the drawing context from it and newGC to take drawing context and get a graphics context. After you have a drawing and graphics context, you can use drawPixbuf to draw or update any image you want, then use the same DrawngArea for Cairo after you've drawing the image.
If you need more help with it, let me know, and I can send some code that will do it later today.
I'd be very much interested, as I also want to load SVG files and my version of Gtk2Hs (Ubuntu Hardy) doesn't have Graphics.Rendering.Cairo.SVG ... Your method can get around this problem I think. Sincerely, Rafal Kolanski.