After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 162791 - gtk_icon_theme_load_icon () doesnt work out-of-the-box
gtk_icon_theme_load_icon () doesnt work out-of-the-box
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: [obsolete] stock-icons
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 165493 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-01-03 09:54 UTC by Tristan Van Berkom
Modified: 2011-02-04 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tristan Van Berkom 2005-01-03 09:54:39 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 ?
Comment 1 Matthias Clasen 2005-01-03 14:41:26 UTC
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.
Comment 2 Matthias Clasen 2005-01-29 05:08:40 UTC
*** Bug 165493 has been marked as a duplicate of this bug. ***