summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimagelinear.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-07-11 06:56:07 +0200
committerBenjamin Otte <otte@redhat.com>2012-08-28 15:40:56 +0200
commit9b953829fbf1332d00c2ca8a99c7da5e4bda8c64 (patch)
treed11d83a1dbe54909d5ee729a77b55bfa4393649d /gtk/gtkcssimagelinear.c
parent3f00801e9aedd971378a6aad70e945903db7a798 (diff)
downloadgtk+-9b953829fbf1332d00c2ca8a99c7da5e4bda8c64.tar.gz
css: Introduce _gtk_css_value_compute()
This commit is essentially a large reorganization. Instead of all value subtypes having their own compute function, there is the general _gtk_css_value_compute() function that then calls a vfunc on the subtype.
Diffstat (limited to 'gtk/gtkcssimagelinear.c')
-rw-r--r--gtk/gtkcssimagelinear.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcssimagelinear.c b/gtk/gtkcssimagelinear.c
index 5c720d965a..ffb7775d16 100644
--- a/gtk/gtkcssimagelinear.c
+++ b/gtk/gtkcssimagelinear.c
@@ -421,7 +421,7 @@ gtk_css_image_linear_compute (GtkCssImage *image,
copy = g_object_new (GTK_TYPE_CSS_IMAGE_LINEAR, NULL);
copy->repeating = linear->repeating;
- copy->angle = _gtk_css_number_value_compute (linear->angle, context);
+ copy->angle = _gtk_css_value_compute (linear->angle, context);
fallback = _gtk_css_symbolic_value_new_take_symbolic_color (gtk_symbolic_color_new_literal (&transparent));
g_array_set_size (copy->stops, linear->stops->len);
@@ -438,7 +438,7 @@ gtk_css_image_linear_compute (GtkCssImage *image,
FALSE);
if (stop->offset)
- scopy->offset = _gtk_css_number_value_compute (stop->offset, context);
+ scopy->offset = _gtk_css_value_compute (stop->offset, context);
else
scopy->offset = NULL;
}