
5 Jan
2005
5 Jan
'05
12:14 a.m.
On Tue, Jan 04, 2005 at 04:38:31PM -0600, Derek P. Moore wrote:
The Inkscape::UI::Icons namespace could have its own version of the sp_icon_image_from_svg() function. It would have to return a Glib::RefPtrGdk::Pixbuf, instead of a pointer to an array of guchars.
I could then do something like: src.set_pixbuf(get_icon_pixbuf("draw_select")); ... instead of ... src.set_filename(get_icon_path("tool-select.svg")); ... as it's done now.
However, this get_icon_pixbuf() function has to wait till the Gtkmm codebase has access to Inkscape's renderer, which it currently doesn't.
As I said, check widgets/icon.cpp, it's all there:
const Glib::RefPtrGdk::Pixbuf PixBufFactory::getIcon(const ID &id)
--
Kees Cook @outflux.net