Commit 1e8e08ce authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Florian Müllner

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 GNOME/gnome-shell#1934
parent 05c3ac23
...@@ -1193,11 +1193,10 @@ st_theme_node_lookup_length (StThemeNode *node, ...@@ -1193,11 +1193,10 @@ st_theme_node_lookup_length (StThemeNode *node,
else if (result == VALUE_INHERIT) else if (result == VALUE_INHERIT)
inherit = TRUE; inherit = TRUE;
if (inherit && node->parent_node && if (inherit && node->parent_node)
st_theme_node_lookup_length (node->parent_node, property_name, inherit, length)) return st_theme_node_lookup_length (node->parent_node, property_name, inherit, length);
return TRUE;
else return FALSE;
return FALSE;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment