Gtk-WARNING **: Error parsing gtk-icon-sizes string

Nikita Manovich nikita.manovich at gmail.com
Sun Nov 8 01:11:58 UTC 2009


Hi,

It is just FYI...

Several hours were spent on investigation "Gtk-WARNING **: Error parsing
gtk-icon-sizes string" issue... Most of all gnome application printed
the warnings on my Ubuntu 9.10. I found out that only one function in
GTK+ library prints the warning:
static void
icon_size_setting_parse (GtkSettings *settings,
			 const gchar *icon_size_string)

After that I found out that it doesn't like its "icon_size_string"
argument: "panel-menu=24,24\npanel=20,20\ngtk-button=18,18
\ngtk-large-toolbar=24,24"
Instead of "\n" the function expects ":"...

Using strace tool I understood the root cause... It is my new theme
Moomex. It has /home/nikman/.themes/Moomex/gtk-2.0/gtkrc file which
contains the following line:
gtk-icon-sizes = "panel-menu=24,24\npanel=20,20\ngtk-button=18,18
\ngtk-large-toolbar=24,24"

*************
* SOLUTION: *
*************
If you have the same problems on your system... Change the following
string in your /home/<USER>/.themes/<YOUR THEME>/gtk-2.0/gtkrc:
gtk-icon-sizes =
"panel-menu=24,24:panel=20,20:gtk-button=18,18:gtk-large-toolbar=24,24"

-- 
Best regards,
  Nikita Manovich.





More information about the ubuntu-users mailing list