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();
Has anyone installed this in Ubuntu 12.04? If so can you please point me at instructions.
If there are no packages available, you'll probably need to compile GTK+
yourself. But i wouldn't recommend that.
Also, is there a function in gtkd that will tell me what version of GTK it is running against?
In gtk.Version.Version you have the get[Major|Minor|Micro]Version functions.
And the checkVersion which returns null if the running version is
compatible with the required version, or an error message otherwise.