From a853e3d5a2f48a2312023183de97f3a47bbbb678 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 7 Feb 2006 13:20:10 +0000 Subject: accept SVGs for stock icons. Fixes bug 304417. 2006-02-07 Benjamin Berg * e-gui-utils.c: * e-icon-factory.c: accept SVGs for stock icons. Fixes bug 304417. svn path=/trunk/; revision=31433 --- e-util/ChangeLog | 5 +++++ e-util/e-gui-utils.c | 1 + e-util/e-icon-factory.c | 1 + 3 files changed, 7 insertions(+) (limited to 'e-util') diff --git a/e-util/ChangeLog b/e-util/ChangeLog index 4432472fdc..c063689e4e 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2006-02-07 Benjamin Berg + * e-gui-utils.c: + * e-icon-factory.c: + accept SVGs for stock icons. Fixes bug 304417. + 2006-01-11 Harry Lu * e-marshal.list: removed. diff --git a/e-util/e-gui-utils.c b/e-util/e-gui-utils.c index 919ad860bb..3c1f6f67af 100644 --- a/e-util/e-gui-utils.c +++ b/e-util/e-gui-utils.c @@ -107,6 +107,7 @@ e_icon_for_mime_type (const char *mime_type, int size_hint) if (!icon_theme) icon_theme = gnome_icon_theme_new (); + gnome_icon_theme_set_allow_svg (icon_theme, TRUE); icon_name = gnome_icon_lookup (icon_theme, NULL, NULL, NULL, NULL, mime_type, 0, NULL); diff --git a/e-util/e-icon-factory.c b/e-util/e-icon-factory.c index 84af2d635b..6ed841b98e 100644 --- a/e-util/e-icon-factory.c +++ b/e-util/e-icon-factory.c @@ -201,6 +201,7 @@ e_icon_factory_init (void) return; icon_theme = gnome_icon_theme_new (); + gnome_icon_theme_set_allow_svg (icon_theme, TRUE); name_to_icon = g_hash_table_new (g_str_hash, g_str_equal); g_signal_connect (G_OBJECT (icon_theme), "changed", G_CALLBACK (icon_theme_changed_cb), NULL); -- cgit v1.2.3