
On Tue, 2005-01-04 at 15:04 -0400, bulia byak wrote:
Is it too hard to make a gdk-pixbuf loader out of it, capable of rendering icons by their ids from a single file?
Well, gdk-pixbuf loads and renders whole files. There's no mechanism by which to tell it to render only a component of a file. See: http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/
As for making Inkscape's renderer a dynamic gdk-pixbuf loader... I don't imagine it would be too difficult. Personally, I wouldn't know where to start. But, Bulia, you may know enough about Inkscape's renderer to do it.
Basically it would mean turning Inkscape's renderer into a shared library (which might benefit Inkscape along the way). You'd also have to write a 'loader' shared object and an 'engine' shared object for GTK+ to use Inkscape's renderer library (they go into /usr/lib/gtk-2.0/2.4.0/engines/ and /usr/lib/gtk-2.0/2.4.0/loaders/).
If it's possible to be done, it could help Inkscape, GTK+, and GNOME all at once. It could help Inkscape by making the renderer's interface more clean and modular. It could help GTK+/GNOME by providing a higher quality alternative to librsvg, which would become more and more viable as Inkscape's renderer speeds up and becomes more efficient. And it could help the rest of the Free Software world by providing a very high quality SVG rendering library to reuse.
But all that's certainly not something I can undertake. I simply don't know enough about Inkscape's internals.