styleproperties: Add a warning

GtkStyleProperties stores computed values. Make sure it does.
This commit is contained in:
Benjamin Otte 2012-01-14 17:20:15 +01:00
parent 032e8f9f9b
commit bd8fefb20e

View File

@ -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);