diff options
author | Benjamin Otte <otte@redhat.com> | 2012-07-16 14:15:19 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-08-28 15:40:57 +0200 |
commit | 36c79712a120eac52d600c90ecd2affc34d21b50 (patch) | |
tree | f66e283840779a2788171b9e7d72af9bfcf01df3 /gtk/gtkcsstypedvalue.c | |
parent | c9b918b70f08d9d6531126aca69aa9e9777a0781 (diff) | |
download | gtk+-36c79712a120eac52d600c90ecd2affc34d21b50.tar.gz |
csscustomproperty: Move compute code to GtkCssTypedValue
This way, we don't need the print_value vfunc anymore.
Diffstat (limited to 'gtk/gtkcsstypedvalue.c')
-rw-r--r-- | gtk/gtkcsstypedvalue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkcsstypedvalue.c b/gtk/gtkcsstypedvalue.c index eb98684d40..60eeea8c68 100644 --- a/gtk/gtkcsstypedvalue.c +++ b/gtk/gtkcsstypedvalue.c @@ -19,6 +19,7 @@ #include "gtkcsstypedvalueprivate.h" +#include "gtkcsscustompropertyprivate.h" #include "gtkcssstylefuncsprivate.h" struct _GtkCssValue { @@ -38,7 +39,9 @@ gtk_css_value_typed_compute (GtkCssValue *value, guint property_id, GtkStyleContext *context) { - return _gtk_css_value_ref (value); + GtkCssCustomProperty *custom = GTK_CSS_CUSTOM_PROPERTY (_gtk_css_style_property_lookup_by_id (property_id)); + + return _gtk_css_style_compute_value (context, custom->pspec->value_type, value); } static gboolean |