diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-09-17 16:40:45 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-09-17 16:53:02 -0400 |
commit | d3727817ffa07272ae0442b76d82ff15d1327d71 (patch) | |
tree | 441cc146ad9101a95aa8dc29deefbbbdfd179545 /gtk/gtkcssimageradial.c | |
parent | 737cae8e10be162b6931e4ef34574290d574dabc (diff) | |
download | gtk+-d3727817ffa07272ae0442b76d82ff15d1327d71.tar.gz |
Drop support for one-stop gradients
These have been deprecated for a while. Time to make this an
error for GTK+ 4.
Diffstat (limited to 'gtk/gtkcssimageradial.c')
-rw-r--r-- | gtk/gtkcssimageradial.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtkcssimageradial.c b/gtk/gtkcssimageradial.c index 585d136d2c..305e6900ef 100644 --- a/gtk/gtkcssimageradial.c +++ b/gtk/gtkcssimageradial.c @@ -379,10 +379,9 @@ gtk_css_image_radial_parse (GtkCssImage *image, if (radial->stops->len < 2) { - _gtk_css_parser_error_full (parser, - GTK_CSS_PROVIDER_ERROR_DEPRECATED, - "Using one color stop with %s() is deprecated.", - radial->repeating ? "repeating-radial-gradient" : "radial-gradient"); + _gtk_css_parser_error (parser, "%s() needs at least 2 color stops.", + radial->repeating ? "repeating-radial-gradient" : "radial-gradient"); + return FALSE; } if (!_gtk_css_parser_try (parser, ")", TRUE)) |