styleproperty: 3rd hotfix for a 3-line patch

I really should not write code sometimes...

Copy/paste error this time.
This commit is contained in:
Benjamin Otte 2012-04-10 16:55:05 +02:00
parent 3610ef90c3
commit 555cf516fd

View File

@ -466,7 +466,7 @@ _gtk_css_style_property_is_specified_type (GtkCssStyleProperty *property,
/* 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_GRADIENT)
type == GTK_TYPE_SYMBOLIC_COLOR)
return TRUE;
if (_gtk_css_value_holds (property->initial_value, CAIRO_GOBJECT_TYPE_PATTERN) &&
type == GTK_TYPE_GRADIENT)