summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtkcssstylepropertyimpl.c8
-rw-r--r--gtk/gtkthemingbackground.c2
2 files changed, 5 insertions, 5 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,
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index 1bedb784d6..6d006772f8 100644
--- a/gtk/gtkthemingbackground.c
+++ b/gtk/gtkthemingbackground.c
@@ -134,7 +134,7 @@ _gtk_theming_background_paint (GtkThemingBackground *bg,
double width, height;
GtkCssRepeatStyle hrepeat, vrepeat;
- pos = _gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_POSITION);
+ pos = _gtk_css_array_value_get_nth (_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_POSITION), 0);
repeat = _gtk_css_array_value_get_nth (_gtk_style_context_peek_property (bg->context, GTK_CSS_PROPERTY_BACKGROUND_REPEAT), 0);
hrepeat = _gtk_css_background_repeat_value_get_x (repeat);
vrepeat = _gtk_css_background_repeat_value_get_y (repeat);