Commit 6f889e83 authored by Matthias Clasen's avatar Matthias Clasen

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.
parent 2599ca4d
......@@ -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, },
......
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