From 91202ef497d4aff63c274cb74c2262ab9e4f3d60 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 2 Jan 2012 12:12:29 +0100 Subject: [PATCH] styleproperty: Move pspec to GtkCssCustomProperty It's only used there. --- gtk/gtkcsscustomproperty.c | 6 +++--- gtk/gtkcsscustompropertyprivate.h | 1 + gtk/gtkcssstylepropertyprivate.h | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkcsscustomproperty.c b/gtk/gtkcsscustomproperty.c index 9d4c61f47c..de7238c36a 100644 --- a/gtk/gtkcsscustomproperty.c +++ b/gtk/gtkcsscustomproperty.c @@ -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; diff --git a/gtk/gtkcsscustompropertyprivate.h b/gtk/gtkcsscustompropertyprivate.h index e4eb364de1..216ce7cbf7 100644 --- a/gtk/gtkcsscustompropertyprivate.h +++ b/gtk/gtkcsscustompropertyprivate.h @@ -39,6 +39,7 @@ struct _GtkCssCustomProperty { GtkCssStyleProperty parent; + GParamSpec *pspec; GtkStylePropertyParser property_parse_func; }; diff --git a/gtk/gtkcssstylepropertyprivate.h b/gtk/gtkcssstylepropertyprivate.h index 3fe477e9a1..79516f4b40 100644 --- a/gtk/gtkcssstylepropertyprivate.h +++ b/gtk/gtkcssstylepropertyprivate.h @@ -41,7 +41,6 @@ struct _GtkCssStyleProperty GValue initial_value; guint id; - GParamSpec *pspec; guint inherit :1; };