Re: [java-gnome-hackers] Pixbufs from named Icons?
Brought to you by:
afcowie
From: Guillaume M. <res...@gm...> - 2010-09-22 16:38:06
|
> Is there a way to get a Pixbuf for a named Icon? As far as I know, there is no way to do this. > Seems like there should be a Pixbuf.<init>(Icon) constructor, but I > can't find a gtk_pixbuf_new... function that fits. What did make you think this? I searched too and didn't find it anything > I tried exposing Image's getPixbuf() and using it on a > Image.<init>(Icon, IconSize) CRASH. [no surprise there; a GtkImage is > specific to how it was created and a pain in the ass, which is why I > never exposed any of the getters...] Image's getPixbuf() can be used when you create an Image using a Pixbuf, so yeah no surprise. -- Guillaume Mazoyer - http://www.respawner.fr/ |