styleproperty: Move pspec to GtkCssCustomProperty

It's only used there.
This commit is contained in:
Benjamin Otte 2012-01-02 12:12:29 +01:00
parent 3375dd2a5f
commit 91202ef497
3 changed files with 4 additions and 4 deletions

View File

@ -164,7 +164,7 @@ gtk_theming_engine_register_property (const gchar *name_space,
"name", name, "name", name,
"value-type", pspec->value_type, "value-type", pspec->value_type,
NULL); NULL);
GTK_CSS_STYLE_PROPERTY (node)->pspec = pspec; node->pspec = pspec;
node->property_parse_func = parse_func; node->property_parse_func = parse_func;
g_value_unset (&initial); g_value_unset (&initial);
@ -199,7 +199,7 @@ gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
"name", pspec->name, "name", pspec->name,
"value-type", pspec->value_type, "value-type", pspec->value_type,
NULL); NULL);
GTK_CSS_STYLE_PROPERTY (node)->pspec = pspec; node->pspec = pspec;
node->property_parse_func = parse_func; node->property_parse_func = parse_func;
g_value_unset (&initial); g_value_unset (&initial);
@ -236,7 +236,7 @@ gtk_style_properties_lookup_property (const gchar *property_name,
GtkCssCustomProperty *custom = GTK_CSS_CUSTOM_PROPERTY (node); GtkCssCustomProperty *custom = GTK_CSS_CUSTOM_PROPERTY (node);
if (pspec) if (pspec)
*pspec = GTK_CSS_STYLE_PROPERTY (node)->pspec; *pspec = custom->pspec;
if (parse_func) if (parse_func)
*parse_func = custom->property_parse_func; *parse_func = custom->property_parse_func;

View File

@ -39,6 +39,7 @@ struct _GtkCssCustomProperty
{ {
GtkCssStyleProperty parent; GtkCssStyleProperty parent;
GParamSpec *pspec;
GtkStylePropertyParser property_parse_func; GtkStylePropertyParser property_parse_func;
}; };

View File

@ -41,7 +41,6 @@ struct _GtkCssStyleProperty
GValue initial_value; GValue initial_value;
guint id; guint id;
GParamSpec *pspec;
guint inherit :1; guint inherit :1;
}; };