forked from AuroraMiddleware/gtk
css: Add -gtk-icon-source property
This is to be used for rendering icon content via CSS, such as spinners or checkboxes.
This commit is contained in:
parent
633ec8184d
commit
226e1cd2b2
@ -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,
|
||||
|
@ -80,6 +80,7 @@ enum { /*< skip >*/
|
||||
GTK_CSS_PROPERTY_FONT_VARIANT,
|
||||
GTK_CSS_PROPERTY_FONT_WEIGHT,
|
||||
GTK_CSS_PROPERTY_TEXT_SHADOW,
|
||||
GTK_CSS_PROPERTY_ICON_SOURCE,
|
||||
GTK_CSS_PROPERTY_ICON_SHADOW,
|
||||
GTK_CSS_PROPERTY_BOX_SHADOW,
|
||||
GTK_CSS_PROPERTY_MARGIN_TOP,
|
||||
|
Loading…
Reference in New Issue
Block a user