[gtk+/gtk-style-context: 210/251] GtkCssProvider: strip whitespaces in symbolic color values.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 210/251] GtkCssProvider: strip whitespaces in symbolic color values.
- Date: Tue, 12 Oct 2010 02:12:45 +0000 (UTC)
commit fdc591f02379749c9fdd5f42a8f9a70e2277b755
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Sep 2 01:49:59 2010 +0200
GtkCssProvider: strip whitespaces in symbolic color values.
gtk/gtkcssprovider.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 5e8ef56..c64ab88 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1465,7 +1465,7 @@ parse_rule (GtkCssProvider *css_provider,
scanner->value.v_identifier[0] == '@')
{
GtkSymbolicColor *color;
- gchar *color_name;
+ gchar *color_name, *color_str;
/* Rule is a color mapping */
color_name = g_strdup (&scanner->value.v_identifier[1]);
@@ -1480,7 +1480,8 @@ parse_rule (GtkCssProvider *css_provider,
if (scanner->token != G_TOKEN_IDENTIFIER)
return G_TOKEN_IDENTIFIER;
- color = symbolic_color_parse (scanner->value.v_identifier);
+ color_str = g_strstrip (scanner->value.v_identifier);
+ color = symbolic_color_parse (color_str);
if (!color)
return G_TOKEN_IDENTIFIER;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]