[Gtk-sharp-list] GNOME Icon Theme Stopped Working after Gtk# Upgrade

Jacek Rużyczka stacheldraht at interia.pl
Wed May 30 19:47:16 UTC 2012


Hi folks,

I am developing a Gtk#-based desktop app by using MoneDevelop. My current 
versions of Gtk# and MD are:

jacek at veteran:~> rpm -q gtk-sharp2-complete
gtk-sharp2-complete-2.12.10-32.1.2.x86_64
jacek at veteran:~> rpm -q monodevelop
monodevelop-3.0.2-15.1.noarch

Before the last upgrade it was easy to reference standard GNOME theme icons by 
using code like this:

Gtk.IconTheme.Default.LoadIcon("gtk-dialog-error", 32, 0);

Now this isn't working: Mono/Gtk# doesn't find the icons any more:

System.Reflection.TargetInvocationException: Exception has been thrown by the 
target of an invocation. ---> GLib.GException: Symbol »gtk-dialog-error« nicht 
im Thema vorhanden
  at Gtk.IconTheme.LoadIcon (System.String icon_name, Int32 size, 
IconLookupFlags flags) [0x0004a] in /home/abuild/rpmbuild/BUILD/gtk-
sharp-2.12.10/gtk/generated/IconTheme.cs:260 

Re-installing gnome-icon-theme didn't help either:

jacek at veteran:~> rpm -q gnome-icon-theme
gnome-icon-theme-3.2.1.2-1.2.noarch

Do I now have to reference all necessary icons by hand in my project? I hope 
not…

Kind regards
Jacek Rużyczka



More information about the Gtk-sharp-list mailing list