summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyimpl.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2014-10-02 02:23:34 +0200
committerBenjamin Otte <otte@redhat.com>2014-10-03 06:18:04 +0200
commite683e915b80e70574a9e21de087522a6c1e45f24 (patch)
treebdfde034ee1714e8ae2bb9318bd4144bab6508b2 /gtk/gtkcssstylepropertyimpl.c
parentf7ee61c8331465d418fc4914555d04401497236d (diff)
downloadgtk+-e683e915b80e70574a9e21de087522a6c1e45f24.tar.gz
css: Queue resize for properties that affect clip
This fixes shadows that are animated not updating the clip of the widget they are drawn on. An example of this are the buttons in the CSS shadows example in gtk-demo. Reftest included
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r--gtk/gtkcssstylepropertyimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c
index 5de2a94582..3b4186c74b 100644
--- a/gtk/gtkcssstylepropertyimpl.c
+++ b/gtk/gtkcssstylepropertyimpl.c
@@ -90,7 +90,7 @@ gtk_css_style_property_register (const char * name,
node = g_object_new (GTK_TYPE_CSS_STYLE_PROPERTY,
"value-type", value_type,
- "affects-size", (affects & GTK_CSS_AFFECTS_SIZE) ? TRUE : FALSE,
+ "affects-size", (affects & (GTK_CSS_AFFECTS_CLIP | GTK_CSS_AFFECTS_SIZE)) ? TRUE : FALSE,
"affects-font", (affects & GTK_CSS_AFFECTS_FONT) ? TRUE : FALSE,
"animated", (flags & GTK_STYLE_PROPERTY_ANIMATED) ? TRUE : FALSE,
"inherit", (flags & GTK_STYLE_PROPERTY_INHERIT) ? TRUE : FALSE,