diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-27 07:51:20 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:12 +0200 |
commit | 0fdc2873390655af8826b31cb76cfdd58c7397be (patch) | |
tree | f5c54a99d408ab6512bc2e4963330b40268b634e /gtk/gtkcssstyleproperty.c | |
parent | 7fbc583b8877355d40094e1e321f7b2dc87bed45 (diff) | |
download | gtk+-0fdc2873390655af8826b31cb76cfdd58c7397be.tar.gz |
styleproperty: Simplify compute_value function
The compute_value fallback path is only needed for custom properties,
the real style properties have custom compute functions if they need
them already.
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index a8bcf2f1cc..9a3959d582 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -303,7 +303,7 @@ gtk_css_style_property_real_compute_value (GtkCssStyleProperty *property, GtkStyleContext *context, GtkCssValue *specified) { - return _gtk_css_style_compute_value (context, _gtk_css_style_property_get_computed_type (property), specified); + return _gtk_css_value_ref (specified); } static gboolean |