On Mon, 3 Jan 2005 07:44:01 -0800, Kees Cook <inkscape@...62...> wrote:
I didn't imagine that writing a script to explode icons.svg into its separate files would be that complicated. I mean, Inkscape already does some fashion of this in C using Inkscape's render.
It's not simple. Some of the icons depend on eachother (for their elements or gradients, clones, etc), and the offset/size information comes from the rendered bounding box. That was one of the reasons for merging them into a single file; it's easier to maintain a certain look/feel.
I second that. Another reason icons should stay in one file is that breaking them would slow down Inkscape loading a lot. It's a very sensitive area because people strongly dislike programs that take forever just to start up. So please rethink this aspect.
All I can do right now in the Gtkmm code is have GTK+ load each icon separately based on filename and have it automagically rendered via librsvg where ever its required according to the StockID it's associated with.
I'm also against using librsvg in any manner or form. Not only is it a new and redundant dependency, but it is known to be broken in several important ways. We must use our own renderer, if only because it's safer (created and displayed by the same app, no surprises) and helps discover Inkscape bugs (it's like running a test suite on each loading of the program).