summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyimpl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-05-02 21:28:36 +0200
committerBenjamin Otte <otte@redhat.com>2014-05-14 04:28:33 +0200
commit226e1cd2b2bcaef91132603346e2ee856c1bd3fd (patch)
treed9e1ba5432f9c6eac12bb5de1178b09a9d58f170 /gtk/gtkcssstylepropertyimpl.c
parent633ec8184ded80a63dce6b87e9f4ef5a271950e4 (diff)
downloadgtk+-226e1cd2b2bcaef91132603346e2ee856c1bd3fd.tar.gz
css: Add -gtk-icon-source property
This is to be used for rendering icon content via CSS, such as spinners or checkboxes.
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r--gtk/gtkcssstylepropertyimpl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 745a69e93b..882f5a6f5a 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -957,6 +957,14 @@ _gtk_css_style_property_init_properties (void)
NULL,
_gtk_css_shadows_value_new_none ());
+ gtk_css_style_property_register ("-gtk-icon-source",
+ GTK_CSS_PROPERTY_ICON_SOURCE,
+ G_TYPE_NONE,
+ GTK_STYLE_PROPERTY_ANIMATED | GTK_STYLE_PROPERTY_NO_RESIZE,
+ css_image_value_parse,
+ css_image_value_query,
+ css_image_value_assign,
+ _gtk_css_image_value_new (NULL));
gtk_css_style_property_register ("icon-shadow",
GTK_CSS_PROPERTY_ICON_SHADOW,
G_TYPE_NONE,