[gtk+] cssprovider: Don't convert widget style properties to CSS



commit 7de5a4e08df63d62c065925c76f5497b2d0fadb2
Author: Benjamin Otte <otte redhat com>
Date:   Mon May 23 07:10:56 2011 +0200

    cssprovider: Don't convert widget style properties to CSS
    
    They are still CSS, so converting them is wrong.

 gtk/gtkcssprovider.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 2be1039..d433573 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3009,9 +3009,7 @@ gtk_css_ruleset_print (const GtkCssRuleset *ruleset,
           g_string_append (str, "  ");
           g_string_append (str, name);
           g_string_append (str, ": ");
-          s = _gtk_css_value_to_string (value);
-          g_string_append (str, s);
-          g_free (s);
+          g_string_append (str, g_value_get_string (value));
           g_string_append (str, ";\n");
         }
 



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