From: FineFindus Date: Thu, 25 May 2023 15:16:55 +0000 (+0200) Subject: docs: add HSL to Gdk.RGBA.parse X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~219^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2d8c112f085e0b7d7b9f3960571900cf2cd42703;p=gtk4.git docs: add HSL to Gdk.RGBA.parse Update the Gdk.RGBA.parse docs to reflect the ability to parse HSL, which has been added in 4.5.0. --- diff --git a/gdk/gdkrgba.c b/gdk/gdkrgba.c index f80c9df98a..02254929c4 100644 --- a/gdk/gdkrgba.c +++ b/gdk/gdkrgba.c @@ -170,7 +170,7 @@ parse_rgb_value (const char *str, * * The string can be either one of: * - * - A standard name (Taken from the Css specification). + * - A standard name (Taken from the CSS specification). * - A hexadecimal value in the form “\#rgb”, “\#rrggbb”, * “\#rrrgggbbb” or ”\#rrrrggggbbbb” * - A hexadecimal value in the form “\#rgba”, “\#rrggbbaa”, @@ -178,6 +178,8 @@ parse_rgb_value (const char *str, * - A RGB color in the form “rgb(r,g,b)” (In this case the color * will have full opacity) * - A RGBA color in the form “rgba(r,g,b,a)” + * - A HSL color in the form "hsl(hue, saturation, lightness)" + * - A HSLA color in the form "hsla(hue, saturation, lightness, alpha)" * * Where “r”, “g”, “b” and “a” are respectively the red, green, * blue and alpha color values. In the last two cases, “r”, “g”,