Commit 14994e3f authored by Benjamin Otte's avatar Benjamin Otte

styleproperty: Remove _gtk_style_property_unpack()

The function is no longer needed in public API
parent 01548bfc
...@@ -71,7 +71,7 @@ _gtk_css_shorthand_property_assign (GtkStyleProperty *property, ...@@ -71,7 +71,7 @@ _gtk_css_shorthand_property_assign (GtkStyleProperty *property,
GParameter *parameters; GParameter *parameters;
guint i, n_parameters; guint i, n_parameters;
parameters = _gtk_style_property_unpack (property, value, &n_parameters); parameters = property->unpack_func (value, &n_parameters);
for (i = 0; i < n_parameters; i++) for (i = 0; i < n_parameters; i++)
{ {
...@@ -196,7 +196,7 @@ gtk_css_shorthand_property_parse (GtkCssShorthandProperty *shorthand, ...@@ -196,7 +196,7 @@ gtk_css_shorthand_property_parse (GtkCssShorthandProperty *shorthand,
return FALSE; return FALSE;
} }
parameters = _gtk_style_property_unpack (property, &val, &n_parameters); parameters = property->unpack_func (&val, &n_parameters);
g_value_unset (&val); g_value_unset (&val);
for (i = 0; i < shorthand->subproperties->len; i++) for (i = 0; i < shorthand->subproperties->len; i++)
......
...@@ -455,19 +455,6 @@ gtk_style_property_real_parse_value (GtkStyleProperty *property, ...@@ -455,19 +455,6 @@ gtk_style_property_real_parse_value (GtkStyleProperty *property,
return _gtk_css_style_parse_value (value, parser, base); return _gtk_css_style_parse_value (value, parser, base);
} }
GParameter *
_gtk_style_property_unpack (GtkStyleProperty *property,
const GValue *value,
guint *n_params)
{
g_return_val_if_fail (property != NULL, NULL);
g_return_val_if_fail (property->unpack_func != NULL, NULL);
g_return_val_if_fail (value != NULL, NULL);
g_return_val_if_fail (n_params != NULL, NULL);
return property->unpack_func (value, n_params);
}
/** /**
* _gtk_style_property_assign: * _gtk_style_property_assign:
* @property: the property * @property: the property
......
...@@ -99,10 +99,6 @@ void _gtk_style_property_register (GParamSpec ...@@ -99,10 +99,6 @@ void _gtk_style_property_register (GParamSpec
GtkStylePrintFunc print_func, GtkStylePrintFunc print_func,
const GValue *initial_value); const GValue *initial_value);
GParameter * _gtk_style_property_unpack (GtkStyleProperty * property,
const GValue *value,
guint *n_params);
gboolean _gtk_style_property_parse_value (GtkStyleProperty * property, gboolean _gtk_style_property_parse_value (GtkStyleProperty * property,
GValue *value, GValue *value,
GtkCssParser *parser, GtkCssParser *parser,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment