mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
st/theme-node: Support "auto" in lengths
This allows resetting a fixed size to the default in a more specific selector. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/971
This commit is contained in:
parent
4871845d01
commit
fc36837606
1 changed files with 7 additions and 1 deletions
|
|
@ -1707,7 +1707,13 @@ do_size_property (StThemeNode *node,
|
|||
CRDeclaration *decl,
|
||||
int *node_value)
|
||||
{
|
||||
get_length_from_term_int (node, decl->value, FALSE, node_value);
|
||||
CRTerm *term = decl->value;
|
||||
|
||||
if (term->type == TERM_IDENT &&
|
||||
strcmp (term->content.str->stryng->str, "auto") == 0)
|
||||
*node_value = -1;
|
||||
else
|
||||
get_length_from_term_int (node, term, FALSE, node_value);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue