diff options
author | Timm Bäder <mail@baedert.org> | 2017-10-14 14:58:53 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-10-14 17:27:55 +0200 |
commit | 4e24cb858866abafc7208b33df9099d8b5e85d66 (patch) | |
tree | bf5894ddca06677b951dd2c55d3c9c670f636a83 /gtk/gtkcssstylepropertyimpl.c | |
parent | ce5560a790fe4c20a1c8abe52fd223491129d01a (diff) | |
download | gtk+-4e24cb858866abafc7208b33df9099d8b5e85d66.tar.gz |
css: Add GTK_CSS_AFFECTS_ICON_SIZE
And use it in GtkIconHelper. This way, we can avoid resizes when e.g.
the fg color of a symbolic icon changes.
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r-- | gtk/gtkcssstylepropertyimpl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c index c68268e603..8f714d80fa 100644 --- a/gtk/gtkcssstylepropertyimpl.c +++ b/gtk/gtkcssstylepropertyimpl.c @@ -1033,7 +1033,7 @@ _gtk_css_style_property_init_properties (void) GTK_CSS_PROPERTY_ICON_THEME, G_TYPE_NONE, GTK_STYLE_PROPERTY_INHERIT, - GTK_CSS_AFFECTS_ICON | GTK_CSS_AFFECTS_SYMBOLIC_ICON, + GTK_CSS_AFFECTS_ICON | GTK_CSS_AFFECTS_SYMBOLIC_ICON | GTK_CSS_AFFECTS_ICON_SIZE, icon_theme_value_parse, NULL, gtk_css_icon_theme_value_new (NULL)); @@ -1592,7 +1592,7 @@ _gtk_css_style_property_init_properties (void) GTK_CSS_PROPERTY_ICON_STYLE, G_TYPE_NONE, GTK_STYLE_PROPERTY_INHERIT, - GTK_CSS_AFFECTS_ICON | GTK_CSS_AFFECTS_SYMBOLIC_ICON, + GTK_CSS_AFFECTS_ICON | GTK_CSS_AFFECTS_SYMBOLIC_ICON | GTK_CSS_AFFECTS_ICON_SIZE, icon_style_parse, NULL, _gtk_css_icon_style_value_new (GTK_CSS_ICON_STYLE_REQUESTED)); |