From 3100b76ba946090059142c7f61cd091b3a32ad82 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 17 Feb 2011 20:04:29 +0100 Subject: [PATCH] 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. --- gtk/gtkcssprovider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index 2de3a8ac7a..a0be44ab9f 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -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);