summaryrefslogtreecommitdiff
path: root/gtk/gtkstyleproperties.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-14 17:20:15 +0100
committerBenjamin Otte <otte@redhat.com>2012-02-02 03:14:00 +0100
commitbd8fefb20e42d0ac47f1d561db715e4f1f398e29 (patch)
tree9c513578259f47ea7cb1c4a65ef8d008a3ca409e /gtk/gtkstyleproperties.c
parent032e8f9f9ba2bd8e8e0bc48545c837e89cbacbf6 (diff)
downloadgtk+-bd8fefb20e42d0ac47f1d561db715e4f1f398e29.tar.gz
styleproperties: Add a warning
GtkStyleProperties stores computed values. Make sure it does.
Diffstat (limited to 'gtk/gtkstyleproperties.c')
-rw-r--r--gtk/gtkstyleproperties.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index a92d72219e..4643a93a2c 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -439,6 +439,8 @@ _gtk_style_properties_set_property_by_property (GtkStyleProperties *props,
PropertyData *prop;
GValue *val;
+ g_return_if_fail (G_VALUE_TYPE (value) == _gtk_css_style_property_get_computed_type (style_prop));
+
priv = props->priv;
prop = g_hash_table_lookup (priv->properties, style_prop);