Gangmax Blog

Screenlets error "GError icon 'gtk-close' not present in the theme" on Ubuntu 12.04

After I install screenlets and add some items on me desktop, Ubuntu reports crashes time to time. Today I notice the error message is:

1
2
3
File "/usr/lib/pymodules/python2.7/screenlets/__init__.py", line 1302, in load_buttons
self.coloseb = self.gtk_icon_theme.load_icon("gtk-close", 16, 0)
GError: Icon 'gtk-close' not present in theme

Google “GError: icon ‘gtk-close’ not present in the theme” and find the solution from here:

For me, the bug’s root cause is that the screenlet(s) are looking for “gtk-close.png” which wasn’t installed in 12.04 by default. I added “gnome-icon-theme-full” from the repositories, which includes gtk-close.png, and the issue has not come back.

So the fix is:

1
sudo apt-get install gnome-icon-theme-full

Comments