diff options
author | Benjamin Otte <otte@redhat.com> | 2012-07-16 14:48:43 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-08-28 15:42:23 +0200 |
commit | 0e2f35ed882ab11d010866d32f2f65232145b8d0 (patch) | |
tree | f8e1af229adca8cdcce0b08808c3f6571615dd22 /gtk/gtkcssimagelinear.c | |
parent | 9e7e65ca6e01246cf9eea156f0153014b58e4d36 (diff) | |
download | gtk+-0e2f35ed882ab11d010866d32f2f65232145b8d0.tar.gz |
css: Introduce dependencies for value computations
When values are computed, they might depend on various other values and
we need to track this so we can update the values when those other
values change. This is the first step in making that happen.
This patch does not do any dependency tracking at all, instead it uses
GTK_CSS_DEPENDS_ON_EVERYTHING as a sort of FIXME.
Diffstat (limited to 'gtk/gtkcssimagelinear.c')
-rw-r--r-- | gtk/gtkcssimagelinear.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcssimagelinear.c b/gtk/gtkcssimagelinear.c index 10977e8ff2..998d3660cf 100644 --- a/gtk/gtkcssimagelinear.c +++ b/gtk/gtkcssimagelinear.c @@ -420,7 +420,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, context); + copy->angle = _gtk_css_value_compute (linear->angle, property_id, context, NULL); g_array_set_size (copy->stops, linear->stops->len); for (i = 0; i < linear->stops->len; i++) @@ -430,10 +430,10 @@ 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, context); + scopy->color = _gtk_css_value_compute (stop->color, property_id, context, NULL); if (stop->offset) - scopy->offset = _gtk_css_value_compute (stop->offset, property_id, context); + scopy->offset = _gtk_css_value_compute (stop->offset, property_id, context, NULL); else scopy->offset = NULL; } |