Fix parsing of color names containing numbers

They were being defined correctly through @define-color
in CSS, but parsing failed at the moment of creating
GtkSymbolicColors depending on these.
This commit is contained in:
Carlos Garnacho 2011-02-17 20:04:29 +01:00
parent bdacdfb78b
commit 3100b76ba9

View File

@ -1982,7 +1982,7 @@ symbolic_color_parse_str (const gchar *string,
str++;
end = str;
while (*end == '-' || *end == '_' || g_ascii_isalpha (*end))
while (*end == '-' || *end == '_' || g_ascii_isalnum (*end))
end++;
name = g_strndup (str, end - str);