diff options
author | Benjamin Otte <otte@redhat.com> | 2014-05-01 19:50:22 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-05-14 04:28:33 +0200 |
commit | 633ec8184ded80a63dce6b87e9f4ef5a271950e4 (patch) | |
tree | e0e49317019b7f4227375df21f7a103927d0a4ea /gtk/gtkcssimage.c | |
parent | f6af96723c82e6a0a956f8e0e7441edb8256c1c2 (diff) | |
download | gtk+-633ec8184ded80a63dce6b87e9f4ef5a271950e4.tar.gz |
css: Add support for -gtk-icontheme("icon-name")
This allows using icons from the icontheme as images in CSS. The
reasoning is that this allows to give the image control about how it's
scaled (by using the icon theme's scaling method. So we can get crisp
images at different resolutions.
Diffstat (limited to 'gtk/gtkcssimage.c')
-rw-r--r-- | gtk/gtkcssimage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c index 53b1c26db7..c5a336a0a4 100644 --- a/gtk/gtkcssimage.c +++ b/gtk/gtkcssimage.c @@ -26,6 +26,7 @@ /* for the types only */ #include "gtk/gtkcssimagecrossfadeprivate.h" #include "gtk/gtkcssimagegradientprivate.h" +#include "gtk/gtkcssimageiconthemeprivate.h" #include "gtk/gtkcssimagelinearprivate.h" #include "gtk/gtkcssimageurlprivate.h" #include "gtk/gtkcssimagescaledprivate.h" @@ -423,6 +424,7 @@ gtk_css_image_get_parser_type (GtkCssParser *parser) } image_types[] = { { "url", _gtk_css_image_url_get_type }, { "-gtk-gradient", _gtk_css_image_gradient_get_type }, + { "-gtk-icontheme", _gtk_css_image_icon_theme_get_type }, { "-gtk-scaled", _gtk_css_image_scaled_get_type }, { "-gtk-win32-theme-part", _gtk_css_image_win32_get_type }, { "linear-gradient", _gtk_css_image_linear_get_type }, |