summaryrefslogtreecommitdiff
path: root/gtk/gtkcsscustomproperty.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-02 00:28:56 +0100
committerBenjamin Otte <otte@redhat.com>2012-01-09 18:37:53 +0100
commit4821e52cf2ce967e024d37a9f329008a8ed46658 (patch)
tree576618425a7f3d35aa5534eedfe934faab7cf6e3 /gtk/gtkcsscustomproperty.c
parent5ae00c375541fb5ca1105a9f6025e248511cd155 (diff)
downloadgtk+-4821e52cf2ce967e024d37a9f329008a8ed46658.tar.gz
styleproperty: Move pspec to GtkCssStyleProperty
shorthands don't use pspecs anymore.
Diffstat (limited to 'gtk/gtkcsscustomproperty.c')
-rw-r--r--gtk/gtkcsscustomproperty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkcsscustomproperty.c b/gtk/gtkcsscustomproperty.c
index ab0ec9eb96..1175af3e63 100644
--- a/gtk/gtkcsscustomproperty.c
+++ b/gtk/gtkcsscustomproperty.c
@@ -126,7 +126,7 @@ gtk_theming_engine_register_property (const gchar *name_space,
"name", name,
"value-type", pspec->value_type,
NULL);
- node->pspec = pspec;
+ GTK_CSS_STYLE_PROPERTY (node)->pspec = pspec;
node->property_parse_func = parse_func;
g_value_unset (&initial);
@@ -161,7 +161,7 @@ gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
"name", pspec->name,
"value-type", pspec->value_type,
NULL);
- node->pspec = pspec;
+ GTK_CSS_STYLE_PROPERTY (node)->pspec = pspec;
node->property_parse_func = parse_func;
g_value_unset (&initial);
@@ -196,7 +196,7 @@ gtk_style_properties_lookup_property (const gchar *property_name,
if (GTK_IS_CSS_CUSTOM_PROPERTY (node))
{
if (pspec)
- *pspec = node->pspec;
+ *pspec = GTK_CSS_STYLE_PROPERTY (node)->pspec;
if (parse_func)
*parse_func = node->property_parse_func;