On Wed, 06 Nov 2013 20:47:11 +0100, Mike Wey wrote:

On 11/06/2013 06:53 AM, Steve Teale wrote:

I need gdk.cairo.surfaceCreateFromPixbuf, which starts in GDK3.10.

How badly do you need it?
This might suffice:

ImageSurface surface = ImageSurface.create(CairoFormat.ARGB32, 
pixbuf.getWidth(), pixbuf.getHeight());
Context context = Context.create(surface);
context.setSourcePixbuf(pixbuf, 0, 0);
context.paint();

Mike, I don't see Context.setSourcePixbuf in the documentation. I was under the impression that this was one of the changes in GTK3.

I have worked out how I can do it using ImageSurface.create, and then pushing the pixbuf data into the surface. It's maybe a bit clunky, but it works with the image files I've tried.