summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimage.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-01-14 13:48:43 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-01-14 13:51:15 -0500
commitbeec55a22bd80baad05428f84e1b99ae589f9171 (patch)
treee88893a6cd008dcddc559c35b04a63266cb6ece2 /gtk/gtkcssimage.c
parent1b0ef71696bdfdba34834bba995d6771ec3ae742 (diff)
downloadgtk+-beec55a22bd80baad05428f84e1b99ae589f9171.tar.gz
Add a way to load recolored icons in CSS
This can come in handy to load images that are not in an icon theme, but still benefit from symbolic recoloring. https://bugzilla.gnome.org/show_bug.cgi?id=760536
Diffstat (limited to 'gtk/gtkcssimage.c')
-rw-r--r--gtk/gtkcssimage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcssimage.c b/gtk/gtkcssimage.c
index 23f4b06421..6f141767a8 100644
--- a/gtk/gtkcssimage.c
+++ b/gtk/gtkcssimage.c
@@ -31,6 +31,7 @@
#include "gtk/gtkcssimageradialprivate.h"
#include "gtk/gtkcssimageurlprivate.h"
#include "gtk/gtkcssimagescaledprivate.h"
+#include "gtk/gtkcssimagerecolorprivate.h"
#include "gtk/gtkcssimagewin32private.h"
G_DEFINE_ABSTRACT_TYPE (GtkCssImage, _gtk_css_image, G_TYPE_OBJECT)
@@ -419,6 +420,7 @@ gtk_css_image_get_parser_type (GtkCssParser *parser)
{ "-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-recolor", _gtk_css_image_recolor_get_type },
{ "-gtk-win32-theme-part", _gtk_css_image_win32_get_type },
{ "linear-gradient", _gtk_css_image_linear_get_type },
{ "repeating-linear-gradient", _gtk_css_image_linear_get_type },