Jon A. Cruz wrote:
Our app now registers as a source of named icons. It needs to render and place the images in the source.
I'm not sure I understand this correctly. Do you mean the line in main.cpp adding INKSCAPE_PIXMAPDIR to the icon theme search path, or something else?
Finally, to follow the new "per-application" theme spec, all we need to do is locate the *dynamically* determined settings directory (changes at runtime due to the XDG directory spec), and add that directory to the list of sources searched for named icons.
We don't need to add any dynamically determined dirs anywhere. It's already done for us by GTK. It searches the current theme, regardless of whether it's in the user's ~/.icons directory, an XDG directory or in some system directory. This way if I choose a theme that has the "draw-rectangle" icon in the GNOME appearance properties dialog it is automatically used instead of our icon. This already works for e.g. the draw-eraser icon which I have in my theme.
Note that we want to move away from use of the "stock icon" and use the "named icon".
I removed all code that tried to use custom stock items some time ago because it wasn't used anywhere.
Regards, Krzysztof Kosiński