diff options
author | Benjamin Otte <otte@redhat.com> | 2015-01-31 11:56:15 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-02-06 11:26:31 +0100 |
commit | 1116914ea03685ffbff188e48e32685a4985c2d3 (patch) | |
tree | 13ba596816f999356a705ce410e588e7dfef56c4 /gtk/gtkcssimagelinear.c | |
parent | 808bfe0a98ac4cd2e11ea4eed82a66470121c19b (diff) | |
download | gtk+-1116914ea03685ffbff188e48e32685a4985c2d3.tar.gz |
css: Move scale to GtkStyleProviderPrivatewip/mir2
This way, we can remove it as a separate argument from
gtk_css_value_compute() and allow computation to only depend on one
thing: the style provider.
Diffstat (limited to 'gtk/gtkcssimagelinear.c')
-rw-r--r-- | gtk/gtkcssimagelinear.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gtk/gtkcssimagelinear.c b/gtk/gtkcssimagelinear.c index f8ee0b2bc2..ac6310c6a5 100644 --- a/gtk/gtkcssimagelinear.c +++ b/gtk/gtkcssimagelinear.c @@ -431,9 +431,8 @@ static GtkCssImage * gtk_css_image_linear_compute (GtkCssImage *image, guint property_id, GtkStyleProviderPrivate *provider, - int scale, - GtkCssStyle *values, - GtkCssStyle *parent_values, + GtkCssStyle *style, + GtkCssStyle *parent_style, GtkCssDependencies *dependencies) { GtkCssImageLinear *linear = GTK_CSS_IMAGE_LINEAR (image); @@ -443,7 +442,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_value_compute (linear->angle, property_id, provider, scale, values, parent_values, dependencies); + copy->angle = _gtk_css_value_compute (linear->angle, property_id, provider, style, parent_style, dependencies); g_array_set_size (copy->stops, linear->stops->len); for (i = 0; i < linear->stops->len; i++) @@ -454,12 +453,12 @@ gtk_css_image_linear_compute (GtkCssImage *image, stop = &g_array_index (linear->stops, GtkCssImageLinearColorStop, i); scopy = &g_array_index (copy->stops, GtkCssImageLinearColorStop, i); - scopy->color = _gtk_css_value_compute (stop->color, property_id, provider, scale, values, parent_values, &child_deps); + scopy->color = _gtk_css_value_compute (stop->color, property_id, provider, style, parent_style, &child_deps); *dependencies = _gtk_css_dependencies_union (*dependencies, child_deps); if (stop->offset) { - scopy->offset = _gtk_css_value_compute (stop->offset, property_id, provider, scale, values, parent_values, &child_deps); + scopy->offset = _gtk_css_value_compute (stop->offset, property_id, provider, style, parent_style, &child_deps); *dependencies = _gtk_css_dependencies_union (*dependencies, child_deps); } else |