[gtk+] Fix parsing of color names containing numbers



commit 3100b76ba946090059142c7f61cd091b3a32ad82
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Feb 17 20:04:29 2011 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 2de3a8a..a0be44a 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]