property_class->parse_value = gtk_css_custom_property_parse_value;
}
+static GtkCssValue *
+gtk_css_custom_property_compute_value (GtkCssStyleProperty *property,
+ GtkStyleContext *context,
+ GtkCssValue *specified)
+{
+ GtkCssCustomProperty *custom = GTK_CSS_CUSTOM_PROPERTY (property);
+
+ return _gtk_css_style_compute_value (context, custom->pspec->value_type, specified);
+}
static void
-_gtk_css_custom_property_init (GtkCssCustomProperty *custom_property)
+_gtk_css_custom_property_init (GtkCssCustomProperty *custom)
{
+ GtkCssStyleProperty *style = GTK_CSS_STYLE_PROPERTY (custom);
+
+ style->compute_value = gtk_css_custom_property_compute_value;
}
static GtkCssValue *
GtkStyleContext *context,
GtkCssValue *specified)
{
- return _gtk_css_style_compute_value (context, _gtk_css_style_property_get_computed_type (property), specified);
+ return _gtk_css_value_ref (specified);
}
static gboolean