[gtk/matthiasc/css-change: 13/15] css: Fix the ANY matcher state list
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/css-change: 13/15] css: Fix the ANY matcher state list
- Date: Wed, 15 Jan 2020 22:59:58 +0000 (UTC)
commit a04fd753a4928f61993197789b6cee3bc395a713
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 15 17:34:03 2020 -0500
css: Fix the ANY matcher state list
The ANY matcher was not, in fact, matching any state,
since the list of states was not up-to-date.
gtk/gtkcssmatcher.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcssmatcher.c b/gtk/gtkcssmatcher.c
index 7138e9ed4a..5547e95fda 100644
--- a/gtk/gtkcssmatcher.c
+++ b/gtk/gtkcssmatcher.c
@@ -402,10 +402,20 @@ gtk_css_matcher_any_get_state (const GtkCssMatcher *matcher)
{
/* XXX: This gets tricky when we implement :not() */
- return GTK_STATE_FLAG_ACTIVE | GTK_STATE_FLAG_PRELIGHT | GTK_STATE_FLAG_SELECTED
- | GTK_STATE_FLAG_INSENSITIVE | GTK_STATE_FLAG_INCONSISTENT
- | GTK_STATE_FLAG_FOCUSED | GTK_STATE_FLAG_BACKDROP | GTK_STATE_FLAG_LINK
- | GTK_STATE_FLAG_VISITED;
+ return GTK_STATE_FLAG_ACTIVE |
+ GTK_STATE_FLAG_PRELIGHT |
+ GTK_STATE_FLAG_SELECTED |
+ GTK_STATE_FLAG_INSENSITIVE |
+ GTK_STATE_FLAG_INCONSISTENT |
+ GTK_STATE_FLAG_FOCUSED |
+ GTK_STATE_FLAG_BACKDROP |
+ GTK_STATE_FLAG_DIR_LTR |
+ GTK_STATE_FLAG_DIR_RTL |
+ GTK_STATE_FLAG_LINK |
+ GTK_STATE_FLAG_VISITED |
+ GTK_STATE_FLAG_CHECKED |
+ GTK_STATE_FLAG_DROP_ACTIVE |
+ GTK_STATE_FLAG_FOCUS_VISIBLE;
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]