[gtk+/wip/css: 47/154] styleproperty: Use _gtk_style_property_get_name()



commit 225edc3aca28ef370d845668583c781468422211
Author: Benjamin Otte <otte redhat com>
Date:   Sat Dec 31 16:40:06 2011 +0100

    styleproperty: Use _gtk_style_property_get_name()

 gtk/gtkcsslookup.c   |    2 +-
 gtk/gtkcssprovider.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcsslookup.c b/gtk/gtkcsslookup.c
index 1dfb6b1..50ee2d5 100644
--- a/gtk/gtkcsslookup.c
+++ b/gtk/gtkcsslookup.c
@@ -202,7 +202,7 @@ _gtk_css_lookup_resolve (GtkCssLookup    *lookup,
           GValue value = { 0, };
           /* Set NULL here and do the inheritance upon lookup? */
           gtk_style_context_get_property (parent,
-                                          prop->pspec->name,
+                                          _gtk_style_property_get_name (prop),
                                           gtk_style_context_get_state (parent),
                                           &value);
           _gtk_style_properties_set_property_by_property (props,
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 8c90091..2998472 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -3251,8 +3251,8 @@ gtk_css_provider_get_named (const gchar *name,
 static int
 compare_properties (gconstpointer a, gconstpointer b)
 {
-  return strcmp (((GtkStyleProperty *) a)->pspec->name,
-                 ((GtkStyleProperty *) b)->pspec->name);
+  return strcmp (_gtk_style_property_get_name ((GtkStyleProperty *) a),
+                 _gtk_style_property_get_name ((GtkStyleProperty *) b));
 }
 
 static void
@@ -3277,7 +3277,7 @@ gtk_css_ruleset_print (const GtkCssRuleset *ruleset,
           const PropertyValue *value = g_hash_table_lookup (ruleset->style, prop);
 
           g_string_append (str, "  ");
-          g_string_append (str, prop->pspec->name);
+          g_string_append (str, _gtk_style_property_get_name (prop));
           g_string_append (str, ": ");
           _gtk_style_property_print_value (prop, &value->value, str);
           g_string_append (str, ";\n");



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