summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/theme.c3
-rw-r--r--src/theme.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/theme.c b/src/theme.c
index b915e4d6..a391d727 100644
--- a/src/theme.c
+++ b/src/theme.c
@@ -4623,7 +4623,8 @@ meta_theme_load_image (MetaTheme *theme,
if (pixbuf == NULL)
{
- if (g_str_has_prefix (filename, "theme:"))
+ if (g_str_has_prefix (filename, "theme:") &&
+ META_THEME_ALLOWS (theme, META_THEME_IMAGES_FROM_ICON_THEMES))
{
pixbuf = gtk_icon_theme_load_icon (
gtk_icon_theme_get_default (),
diff --git a/src/theme.h b/src/theme.h
index aef47a83..a0f35105 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -858,5 +858,6 @@ guint meta_theme_earliest_version_with_button (MetaButtonType type);
/* What version of the theme file format were various features introduced in? */
#define META_THEME_UBIQUITOUS_CONSTANTS 2
#define META_THEME_VARIED_ROUND_CORNERS 2
+#define META_THEME_IMAGES_FROM_ICON_THEMES 2
#endif