[gtk+/gtk-style-context: 164/260] GtkCssProvider: don't ignore custom attributes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 164/260] GtkCssProvider: don't ignore custom attributes
- Date: Wed, 20 Oct 2010 10:35:13 +0000 (UTC)
commit 05dd566ba15b15ee738f92d9cae9e7a8a62cd282
Author: Sven Herzberg <herzi gnome-de org>
Date: Thu Aug 5 16:21:47 2010 +0200
GtkCssProvider: don't ignore custom attributes
* gtk/gtkcssprovider.c: don't ignore custom attribites (which can be
added by theme engines)
gtk/gtkcssprovider.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index eadefa0..67dc3f6 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -584,9 +584,6 @@ gtk_css_provider_get_style (GtkStyleProvider *provider,
{
gchar *prop = key;
- if (prop[0] == '-')
- continue;
-
if (info->state == GTK_STATE_NORMAL)
gtk_style_set_set_default (set, key, value);
else
@@ -1366,7 +1363,12 @@ parse_rule (GtkCssProvider *css_provider,
val = g_slice_new0 (GValue);
g_value_init (val, prop_type);
- if (css_provider_parse_value (value_str, val))
+ if (prop_type == G_TYPE_STRING)
+ {
+ g_value_set_string (val, value_str);
+ g_hash_table_insert (priv->cur_properties, prop, val);
+ }
+ else if (css_provider_parse_value (value_str, val))
g_hash_table_insert (priv->cur_properties, prop, val);
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]