diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-05-10 10:39:25 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-05-15 13:24:40 -0400 |
commit | 9b0467339207e9b87f86796c8c9802ea6126c7af (patch) | |
tree | 69d2ef321d613b1965aa313bcf99d8e1bd59fc2f /gtk/gtkcssstylepropertyimpl.c | |
parent | ed12be7e81808b39ad7c90a6a2147ada1c28ef0c (diff) | |
download | gtk+-9b0467339207e9b87f86796c8c9802ea6126c7af.tar.gz |
styleproperty: make background-position an array property
Diffstat (limited to 'gtk/gtkcssstylepropertyimpl.c')
-rw-r--r-- | gtk/gtkcssstylepropertyimpl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcssstylepropertyimpl.c b/gtk/gtkcssstylepropertyimpl.c index 5fbc5930e6..4c194e41cb 100644 --- a/gtk/gtkcssstylepropertyimpl.c +++ b/gtk/gtkcssstylepropertyimpl.c @@ -874,7 +874,7 @@ static GtkCssValue * background_position_parse (GtkCssStyleProperty *property, GtkCssParser *parser) { - return _gtk_css_position_value_parse (parser); + return _gtk_css_array_value_parse (parser, _gtk_css_position_value_parse, FALSE); } static GtkCssValue * @@ -882,7 +882,7 @@ background_position_compute (GtkCssStyleProperty *property, GtkStyleContext *context, GtkCssValue *specified) { - return _gtk_css_position_value_compute (specified, context); + return _gtk_css_array_value_compute (specified, _gtk_css_position_value_compute, context); } /*** REGISTRATION ***/ @@ -1295,8 +1295,8 @@ _gtk_css_style_property_init_properties (void) background_position_compute, NULL, NULL, - _gtk_css_position_value_new (_gtk_css_number_value_new (0, GTK_CSS_PERCENT), - _gtk_css_number_value_new (0, GTK_CSS_PERCENT))); + _gtk_css_array_value_new (_gtk_css_position_value_new (_gtk_css_number_value_new (0, GTK_CSS_PERCENT), + _gtk_css_number_value_new (0, GTK_CSS_PERCENT)))); gtk_css_style_property_register ("border-top-color", GTK_CSS_PROPERTY_BORDER_TOP_COLOR, |