mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 01:40:10 +00:00
styleproperties: Remove needless check
This commit is contained in:
parent
b889f499a7
commit
e7db090620
@ -745,7 +745,7 @@ style_properties_resolve_type (GtkStyleProperties *props,
|
||||
const GtkStyleProperty *node,
|
||||
GValue *val)
|
||||
{
|
||||
if (val && G_VALUE_TYPE (val) == GTK_TYPE_SYMBOLIC_COLOR)
|
||||
if (G_VALUE_TYPE (val) == GTK_TYPE_SYMBOLIC_COLOR)
|
||||
{
|
||||
if (node->pspec->value_type == GDK_TYPE_RGBA)
|
||||
{
|
||||
@ -760,14 +760,14 @@ style_properties_resolve_type (GtkStyleProperties *props,
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
else if (val && G_VALUE_TYPE (val) == GTK_TYPE_GRADIENT)
|
||||
else if (G_VALUE_TYPE (val) == GTK_TYPE_GRADIENT)
|
||||
{
|
||||
g_return_val_if_fail (node->pspec->value_type == CAIRO_GOBJECT_TYPE_PATTERN, FALSE);
|
||||
|
||||
if (!resolve_gradient (props, val))
|
||||
return FALSE;
|
||||
}
|
||||
else if (val && G_VALUE_TYPE (val) == GTK_TYPE_SHADOW)
|
||||
else if (G_VALUE_TYPE (val) == GTK_TYPE_SHADOW)
|
||||
{
|
||||
if (!resolve_shadow (props, val))
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user