Simplify if statement
And make the end of st_theme_node_lookup_length() consistent with st_theme_node_lookup_color() and st_theme_node_lookup_shadow(). Part of https://gitlab.gnome.org/GNOME/gnome-shell/issues/1934
This commit is contained in:
parent
05c3ac2359
commit
1e8e08ce61
@ -1193,11 +1193,10 @@ st_theme_node_lookup_length (StThemeNode *node,
|
||||
else if (result == VALUE_INHERIT)
|
||||
inherit = TRUE;
|
||||
|
||||
if (inherit && node->parent_node &&
|
||||
st_theme_node_lookup_length (node->parent_node, property_name, inherit, length))
|
||||
return TRUE;
|
||||
else
|
||||
return FALSE;
|
||||
if (inherit && node->parent_node)
|
||||
return st_theme_node_lookup_length (node->parent_node, property_name, inherit, length);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user