]> Pileus Git - ~andy/gtk/commitdiff
Fix parsing of color names containing numbers
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 17 Feb 2011 19:04:29 +0000 (20:04 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 17 Feb 2011 19:10:49 +0000 (20:10 +0100)
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

index 2de3a8ac7a5f0d9d1c200b22f4325275f423bbe0..a0be44ab9ff5ea780b48f54d0af7ba675ddfbff4 100644 (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);