gtk stock icons missing

N James Bridge james at xmas.demon.co.uk
Sun Jun 6 08:41:19 UTC 2010


On Sun, 2010-06-06 at 05:46 +0300, Marius Feraru wrote:
> N James Bridge <james at xmas.demon.co.uk> wrote:
> > I don't know if this is a fedora problem or a gtk one...
> Neither, just your typo, the stock id is "gtk-close".
> Other languages may let you interchange "-" and "_", C API doesn't.
> You should have noticed button's label was coerced into "gtkclose",
> instead your locale's representation for "Close".
> Compile and run it again after:
> $ sed -i s/gtk_close/gtk-close/ stock.c

Actually, I had tried both, and the recommended macro GTK_STOCK_CLOSE.
> 
> > It seems that gtk can't find the directory with the images. The files
> > needed seem to be in /usr/share/icons/gnome and show up in the gtk-demo
> > program. However, Glade buttons selected from stock do not have the
> > icons either.
> Activating /desktop/gnome/interface/buttons_have_icons could help:
> $ gconftool-2 -s /desktop/gnome/interface/buttons_have_icons -t bool 1

This was the problem. It seems gtk 2.20 sets the option to "no icons" by
default and older versions (used in the tutorials etc) did not. The
fedora Preferences/Appearance settings don't provide a way to alter
this. gconf-editor got it sorted.

Thanks for the reply

James



More information about the users mailing list