summaryrefslogtreecommitdiff
path: root/gtk/gtkcssstylepropertyprivate.h
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/gtkcssstylepropertyprivate.h
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/gtkcssstylepropertyprivate.h')
-rw-r--r--gtk/gtkcssstylepropertyprivate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkcssstylepropertyprivate.h b/gtk/gtkcssstylepropertyprivate.h
index ca86bc8db3..84cb1d2d8c 100644
--- a/gtk/gtkcssstylepropertyprivate.h
+++ b/gtk/gtkcssstylepropertyprivate.h
@@ -50,6 +50,7 @@ struct _GtkCssStyleProperty
{
GtkStyleProperty parent;
+ GType computed_type;
GValue initial_value;
guint id;
guint inherit :1;
@@ -77,6 +78,8 @@ gboolean _gtk_css_style_property_is_inherit (GtkCssStyleProp
guint _gtk_css_style_property_get_id (GtkCssStyleProperty *property);
const GValue * _gtk_css_style_property_get_initial_value
(GtkCssStyleProperty *property);
+GType _gtk_css_style_property_get_computed_type (GtkCssStyleProperty *property);
+GType _gtk_css_style_property_get_specified_type (GtkCssStyleProperty *property);
void _gtk_css_style_property_compute_value (GtkCssStyleProperty *property,
GValue *computed,