Commit 91202ef4 authored by Benjamin Otte's avatar Benjamin Otte

styleproperty: Move pspec to GtkCssCustomProperty

It's only used there.
parent 3375dd2a
......@@ -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;
......
......@@ -39,6 +39,7 @@ struct _GtkCssCustomProperty
{
GtkCssStyleProperty parent;
GParamSpec *pspec;
GtkStylePropertyParser property_parse_func;
};
......
......@@ -41,7 +41,6 @@ struct _GtkCssStyleProperty
GValue initial_value;
guint id;
GParamSpec *pspec;
guint inherit :1;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment