summaryrefslogtreecommitdiff
path: root/gtk/gtkcssiconthemevalue.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-12-02 03:18:26 +0100
committerBenjamin Otte <otte@redhat.com>2015-12-02 03:18:26 +0100
commitbc1b53a34c8666404bb2220a8c89ff81d10a3026 (patch)
treefe6918694968688f9a2c892ee340d5e234ed392a /gtk/gtkcssiconthemevalue.c
parentd26a4b55558e50d86639747e4819ada671375287 (diff)
downloadgtk+-bc1b53a34c8666404bb2220a8c89ff81d10a3026.tar.gz
css: Query icon theme from style, not from settings
No need to look at the settings when the CSS has a property for the icon theme.
Diffstat (limited to 'gtk/gtkcssiconthemevalue.c')
-rw-r--r--gtk/gtkcssiconthemevalue.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkcssiconthemevalue.c b/gtk/gtkcssiconthemevalue.c
index 3956d88ca5..84eb02f90c 100644
--- a/gtk/gtkcssiconthemevalue.c
+++ b/gtk/gtkcssiconthemevalue.c
@@ -131,3 +131,10 @@ _gtk_css_icon_theme_value_new (void)
return _gtk_css_value_new (GtkCssValue, &GTK_CSS_VALUE_ICON_THEME);
}
+GtkIconTheme *
+gtk_css_icon_theme_value_get_icon_theme (GtkCssValue *value)
+{
+ g_return_val_if_fail (value->class == &GTK_CSS_VALUE_ICON_THEME, NULL);
+
+ return value->icontheme;
+}