[Goodies-commits] r3845 - xfce4-fsguard-plugin/trunk/panel-plugin

mmassonnet at gmail.com mmassonnet at gmail.com
Thu Jan 24 13:17:48 CET 2008


On Thu, Jan 24, 2008 at 03:11:45AM -0800, Brian J. Tarricone wrote:
> On Thu, 24 Jan 2008 11:42:42 +0100 Nick Schermer wrote:
> 
> > 2008/1/24, Brian J. Tarricone <bjt23 at cornell.edu>:
> > > Argh, yes, I recall that.  I don't remember what you can do for
> > > stock icons; maybe look at gtk_widget_render_icon()?  I don't
> > > recall if that's what I used.  Otherwise you can rescale the icon
> > > returned, but that's ugly...
> > 
> > You should use gtk_icon_theme_load_icon and check for the size
> > afterwards (gdk_pixbuf_scale_simple or exo_gdk_pixbuf_scale_down).
> > That's what the launcher does and AFAIK that works w/o problems.
> 
> Sure, but that doesn't work with stock icons, does it?  (Otherwise,
> xfce_themed_icon_load() does just that as well.)

Yay, I can confirm, gdk_pixbuf_scale_simple works perfectly.  I will
update notes plugin and fsguard.

IIRC, xfce_themed_icon_load is deprecated for Xfce 4.6.

> 	-brian

mike



More information about the Xfce4-dev mailing list