[gtk+/gtk-3-10] Icon theme: Hardcode fallback through the 'gnome' icon theme
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] Icon theme: Hardcode fallback through the 'gnome' icon theme
- Date: Mon, 21 Oct 2013 17:00:36 +0000 (UTC)
commit 90dee25e4d0f4f3c5d490929542ffede5283cbdb
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 21 12:58:29 2013 -0400
Icon theme: Hardcode fallback through the 'gnome' icon theme
This is what we used to get through the Net/FallbackIcontheme
setting. Nobody has ever set this setting to a different value,
and people have come to rely on GTK+ applications getting their
icons this way.
gtk/gtkicontheme.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 110b3a1..8e3198c 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -1255,7 +1255,12 @@ load_themes (GtkIconTheme *icon_theme)
if (priv->current_theme)
insert_theme (icon_theme, priv->current_theme);
- /* Always look in the "default" icon theme */
+ /* Always look in the gnome and hicolor icon themes.
+ * Looking in hicolor is mandated by the spec, looking
+ * in gnome is a pragmatic solution to prevent missing
+ * icons in GTK+ applications when run under, e.g. KDE.
+ */
+ insert_theme (icon_theme, "gnome");
insert_theme (icon_theme, DEFAULT_THEME_NAME);
priv->themes = g_list_reverse (priv->themes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]