Provide cairo convenience functions inside libgdkpixbuf
Submitted by Owen Taylor
There are a number of missing cairo/gdk-pixbuf convenience functions:
- Convert GdkPixbuf to cairo surface
- Convert cairo surface to GdkPixbuf
- Load file as cairo surface
- Save cairo surface to file
I think the best place to put these is in gdk-pixbuf. They (especially the load/save bits) are definitely useful without initializing GTK+, so I don't think putting them inside libgtk or libgdk is a good idea. (People are or should be trained to initialize GTK+ before using functions from GTK+ and GDK)
There is clearly some downside to linking libgdkpixbuf against cairo ... you get an implicit dependency on libX11 and so forth, but because gdk-pixbuf is packaged inside the GTK+ package on most systems, that isn't as big as deal as it might be otherwise.
A separate library doesn't make any sense to me, nor does linking cairo against GdkPixbuf.
Version: git master