/**
* _gtk_style_property_parse_value:
* @property: the property
- * @value: an uninitialized value
* @parser: the parser to parse from
- * @base: the base file for @aprser
*
* Tries to parse the given @property from the given @parser into
* @value. The type that @value will be assigned is dependant on
* left uninitialized.
*
* Only if @property is a #GtkCssShorthandProperty, the @value will
- * always contain a #GValueArray with the values to be used for
- * the subproperties.
+ * always be a #GtkCssValue whose values can be queried with
+ * _gtk_css_array_value_get_nth().
*
- * Returns: %TRUE on success
+ * Returns: %NULL on failure or the parsed #GtkCssValue
**/
-gboolean
+GtkCssValue *
_gtk_style_property_parse_value (GtkStyleProperty *property,
- GValue *value,
- GtkCssParser *parser,
- GFile *base)
+ GtkCssParser *parser)
{
GtkStylePropertyClass *klass;
- g_return_val_if_fail (GTK_IS_STYLE_PROPERTY (property), FALSE);
- g_return_val_if_fail (value != NULL, FALSE);
- g_return_val_if_fail (parser != NULL, FALSE);
+ g_return_val_if_fail (GTK_IS_STYLE_PROPERTY (property), NULL);
+ g_return_val_if_fail (parser != NULL, NULL);
klass = GTK_STYLE_PROPERTY_GET_CLASS (property);
- return klass->parse_value (property, value, parser, base);
+ return klass->parse_value (property, parser);
}
/**