]> Pileus Git - ~andy/gtk/commitdiff
styleproperty: Move pspec to GtkCssCustomProperty
authorBenjamin Otte <otte@redhat.com>
Mon, 2 Jan 2012 11:12:29 +0000 (12:12 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:55 +0000 (18:37 +0100)
It's only used there.

gtk/gtkcsscustomproperty.c
gtk/gtkcsscustompropertyprivate.h
gtk/gtkcssstylepropertyprivate.h

index 9d4c61f47cc8d8d52ff0b45da0c3d14b67c5f458..de7238c36ad4164c6dcb2dae0f26788f5fc99a10 100644 (file)
@@ -164,7 +164,7 @@ gtk_theming_engine_register_property (const gchar            *name_space,
                        "name", name,
                        "value-type", pspec->value_type,
                        NULL);
-  GTK_CSS_STYLE_PROPERTY (node)->pspec = pspec;
+  node->pspec = pspec;
   node->property_parse_func = parse_func;
 
   g_value_unset (&initial);
@@ -199,7 +199,7 @@ gtk_style_properties_register_property (GtkStylePropertyParser  parse_func,
                        "name", pspec->name,
                        "value-type", pspec->value_type,
                        NULL);
-  GTK_CSS_STYLE_PROPERTY (node)->pspec = pspec;
+  node->pspec = pspec;
   node->property_parse_func = parse_func;
 
   g_value_unset (&initial);
@@ -236,7 +236,7 @@ gtk_style_properties_lookup_property (const gchar             *property_name,
       GtkCssCustomProperty *custom = GTK_CSS_CUSTOM_PROPERTY (node);
 
       if (pspec)
-        *pspec = GTK_CSS_STYLE_PROPERTY (node)->pspec;
+        *pspec = custom->pspec;
 
       if (parse_func)
         *parse_func = custom->property_parse_func;
index e4eb364de1fd163aae2cf5c0c419eeeada9bc63e..216ce7cbf751708d5fd707a827d4fa581a73f1e6 100644 (file)
@@ -39,6 +39,7 @@ struct _GtkCssCustomProperty
 {
   GtkCssStyleProperty parent;
 
+  GParamSpec *pspec;
   GtkStylePropertyParser property_parse_func;
 };
 
index 3fe477e9a133694fcd6f4bb6d54f09324bb6a42c..79516f4b40f9a7e7d7dd82e470cfeee35082d884 100644 (file)
@@ -41,7 +41,6 @@ struct _GtkCssStyleProperty
 
   GValue initial_value;
   guint id;
-  GParamSpec *pspec;
   guint inherit :1;
 };