forked from AuroraMiddleware/gtk
css: Support CSS names for pseudo states
What we call :insensitive is called :disabled in CSS, and :inconsistent is :indeterminate. Recognize these names, but still support the old ones.
This commit is contained in:
parent
2599ca4d9f
commit
6f889e832c
@ -736,8 +736,8 @@ print_pseudoclass_state (const GtkCssSelector *selector,
|
||||
"active",
|
||||
"hover",
|
||||
"selected",
|
||||
"insensitive",
|
||||
"inconsistent",
|
||||
"disabled",
|
||||
"indeterminate",
|
||||
"focus",
|
||||
"backdrop",
|
||||
"dir(ltr)",
|
||||
@ -1181,7 +1181,9 @@ parse_selector_pseudo_class (GtkCssParser *parser,
|
||||
{ "hover", GTK_STATE_FLAG_PRELIGHT, },
|
||||
{ "selected", GTK_STATE_FLAG_SELECTED, },
|
||||
{ "insensitive", GTK_STATE_FLAG_INSENSITIVE, },
|
||||
{ "disabled", GTK_STATE_FLAG_INSENSITIVE, },
|
||||
{ "inconsistent", GTK_STATE_FLAG_INCONSISTENT, },
|
||||
{ "indeterminate",GTK_STATE_FLAG_INCONSISTENT, },
|
||||
{ "focused", GTK_STATE_FLAG_FOCUSED, },
|
||||
{ "focus", GTK_STATE_FLAG_FOCUSED, },
|
||||
{ "backdrop", GTK_STATE_FLAG_BACKDROP, },
|
||||
|
Loading…
Reference in New Issue
Block a user