diff options
author | Benjamin Otte <otte@redhat.com> | 2012-03-26 16:22:53 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-04-17 08:59:11 +0200 |
commit | 718ceaec450947b77a52318647a972591d183b5c (patch) | |
tree | 3ab1cadef2d56733f502976a18acfe0d1a737385 /gtk/gtkcssstyleproperty.c | |
parent | 04f5c8708a0281f5f0f936724a51aef06c487b93 (diff) | |
download | gtk+-718ceaec450947b77a52318647a972591d183b5c.tar.gz |
css: Remove _gtk_css_style_property_is_specified_type()
That check is going to be refactored away.
Diffstat (limited to 'gtk/gtkcssstyleproperty.c')
-rw-r--r-- | gtk/gtkcssstyleproperty.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index 4e14cd4a09..35d21ca397 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -464,32 +464,6 @@ _gtk_css_style_property_get_specified_type (GtkCssStyleProperty *property) return _gtk_css_value_get_content_type (property->initial_value); } -gboolean -_gtk_css_style_property_is_specified_type (GtkCssStyleProperty *property, - GType type) -{ - g_return_val_if_fail (GTK_IS_CSS_STYLE_PROPERTY (property), FALSE); - - /* If it's our specified type, of course it's valid */ - if (type == _gtk_css_value_get_content_type (property->initial_value)) - return TRUE; - - /* The special values 'inherit' and 'initial' are always valid */ - if (type == GTK_TYPE_CSS_SPECIAL_VALUE) - return TRUE; - - /* XXX: Someone needs to fix that legacy */ - if ((_gtk_css_value_holds (property->initial_value, GDK_TYPE_RGBA) || - _gtk_css_value_holds (property->initial_value, GDK_TYPE_COLOR)) && - type == GTK_TYPE_SYMBOLIC_COLOR) - return TRUE; - if (_gtk_css_value_holds (property->initial_value, CAIRO_GOBJECT_TYPE_PATTERN) && - type == GTK_TYPE_GRADIENT) - return TRUE; - - return FALSE; -} - /** * _gtk_css_style_property_compute_value: * @property: the property |