summaryrefslogtreecommitdiff
path: root/gtk/gtkcsscustomproperty.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-01-14 03:22:59 +0100
committerBenjamin Otte <otte@redhat.com>2012-02-02 03:13:34 +0100
commit9fa764abecdcc4a06fc90fab97790b3726fbfd79 (patch)
treead135bd06d579aa4588be840a0e6293f8dcf85a9 /gtk/gtkcsscustomproperty.c
parent05f14af24cdf8e3a700716980d720e30ba9c640d (diff)
downloadgtk+-9fa764abecdcc4a06fc90fab97790b3726fbfd79.tar.gz
styleproperty: Introduce "specified type" and "computed type"
Make the types explicit. This way, we can actually do useful stuff with them (like sanity checks, d'oh).
Diffstat (limited to 'gtk/gtkcsscustomproperty.c')
-rw-r--r--gtk/gtkcsscustomproperty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcsscustomproperty.c b/gtk/gtkcsscustomproperty.c
index de7238c36a..266544be48 100644
--- a/gtk/gtkcsscustomproperty.c
+++ b/gtk/gtkcsscustomproperty.c
@@ -162,6 +162,7 @@ gtk_theming_engine_register_property (const gchar *name_space,
node = g_object_new (GTK_TYPE_CSS_CUSTOM_PROPERTY,
"initial-value", &initial,
"name", name,
+ "computed-type", pspec->value_type,
"value-type", pspec->value_type,
NULL);
node->pspec = pspec;
@@ -197,6 +198,7 @@ gtk_style_properties_register_property (GtkStylePropertyParser parse_func,
node = g_object_new (GTK_TYPE_CSS_CUSTOM_PROPERTY,
"initial-value", &initial,
"name", pspec->name,
+ "computed-type", pspec->value_type,
"value-type", pspec->value_type,
NULL);
node->pspec = pspec;