diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-10 10:04:22 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-10 14:50:13 -0500 |
commit | 4f6ea7c418fb06c88c425012e3541305906f048d (patch) | |
tree | b04320f8e2ef2854e619ac07848eeb8d285f76be /gtk/gtkcsseasevalue.c | |
parent | ba8f39a90a4a2c4380c46e848f892cdb33ffac0c (diff) | |
download | gtk+-matthiasc/css-values.tar.gz |
wip: static valuesmatthiasc/css-values
Determine whether a css value is 'static' at creation
time. Static values don't need to have compute() called,
since their value is always the same, so we can just
ref them.
Diffstat (limited to 'gtk/gtkcsseasevalue.c')
-rw-r--r-- | gtk/gtkcsseasevalue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcsseasevalue.c b/gtk/gtkcsseasevalue.c index 7e7c6be7bd..2927ecfb4f 100644 --- a/gtk/gtkcsseasevalue.c +++ b/gtk/gtkcsseasevalue.c @@ -159,6 +159,7 @@ _gtk_css_ease_value_new_cubic_bezier (double x1, g_return_val_if_fail (x2 <= 1.0, NULL); value = _gtk_css_value_new (GtkCssValue, >K_CSS_VALUE_EASE); + value->is_static = TRUE; value->type = GTK_CSS_EASE_CUBIC_BEZIER; value->u.cubic.x1 = x1; @@ -178,6 +179,7 @@ _gtk_css_ease_value_new_steps (guint n_steps, g_return_val_if_fail (n_steps > 0, NULL); value = _gtk_css_value_new (GtkCssValue, >K_CSS_VALUE_EASE); + value->is_static = TRUE; value->type = GTK_CSS_EASE_STEPS; value->u.steps.steps = n_steps; |