GNOME Bugzilla – Bug 162791
gtk_icon_theme_load_icon () doesnt work out-of-the-box
Last modified: 2011-02-04 16:17:22 UTC
The problem is that `gtk_icon_theme_load_icon ()' depends on an internal hash of builtin icons that can only be initialized by the GtkIconFactory. I'm using gtk_icon_factory_lookup_default ("") to provoke it ;o Adding gtk_icon_factory_load_icon () would work, but it wouldnt change the wrongness in calling gtk_icon_theme_load_icon (), and I guess invoking the GtkIconFactory from GtkIconTheme is a broken idea to start with, I guess the only alternative is to make gtk_icon_theme_load_icon () responsable for loading the default theme ?
2005-01-03 Matthias Clasen <mclasen@redhat.com> Make gtk_icon_theme_load_icon() work independent of icon factory initialization. (#162791, Tristan Van Berkom) * gtk/gtkiconfactory.[hc]: Rename ensure_default_icons to _gtk_icon_factory_ensure_default_icons, and make it non-static. * gtk/gtkicontheme.c (find_builtin_icon): ..and call it here.
*** Bug 165493 has been marked as a duplicate of this bug. ***