Commit a28122f8 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

added support for the "transparent" color name.

2004-07-23  Sven Neumann  <sven@gimp.org>

	* libgimpcolor/gimprgb-parse.c (gimp_rgba_parse_css): added support
	for the "transparent" color name.
parent 75565f28
2004-07-23 Sven Neumann <sven@gimp.org>
* libgimpcolor/gimprgb-parse.c (gimp_rgba_parse_css): added support
for the "transparent" color name.
2004-07-22 Sven Neumann <sven@gimp.org>
* libgimpcolor/gimprgb-parse.c
......
......@@ -199,7 +199,15 @@ gimp_rgba_parse_css (GimpRGB *rgba,
tmp = gimp_rgb_parse_strip (css, len);
result = gimp_rgba_parse_css_internal (rgba, tmp);
if (strcmp (tmp, "transparent") == 0)
{
gimp_rgba_set (rgba, 0.0, 0.0, 0.0, 0.0);
result = TRUE;
}
else
{
result = gimp_rgba_parse_css_internal (rgba, tmp);
}
g_free (tmp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment