Since pv stopped working for me I made my own code, it does this:
void gtk_show_image(Image.Image img) { object win=GTK2.Window(GTK2.WindowToplevel); win->set_size_request(img->xsize(),img->ysize()); object da=GTK2.DrawingArea(); win->add(da); win->show_all(); win->show_now(); GTK2.GdkPixmap px=GTK2.GdkPixmap(img); da->set_background(px); }
I'm not sure if that's optimized at all, but it seems to work for now. It was built on a lot of chancing and looking at stuff using indices and typeof. :)
(I don't know why it can't take an Image.Image directly in the set_background. It'd been nice.)