[gtk+] Add a state flag for visible focus



commit 18b8a7f91fe459a36a4baca62e707851105b4365
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Aug 28 22:22:08 2017 -0400

    Add a state flag for visible focus
    
    The new flag is called GTK_STATE_FLAGS_FOCUS_VISIBLE.

 gtk/gtkenums.h         |   30 ++++++++++++++++--------------
 gtk/gtkwidgetprivate.h |    2 +-
 2 files changed, 17 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 025fe61..9460864 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -786,6 +786,7 @@ typedef enum
  * @GTK_STATE_FLAG_VISITED: The location the widget points to has already been visited. Since 3.12
  * @GTK_STATE_FLAG_CHECKED: Widget is checked. Since 3.14
  * @GTK_STATE_FLAG_DROP_ACTIVE: Widget is highlighted as a drop target for DND. Since 3.20
+ * @GTK_STATE_FLAG_FOCUS_VISIBLE: Widget has the visible focus. Since: 3.92
  *
  * Describes a widget state. Widget states are used to match the widget
  * against CSS pseudo-classes. Note that GTK extends the regular CSS
@@ -793,20 +794,21 @@ typedef enum
  */
 typedef enum
 {
-  GTK_STATE_FLAG_NORMAL       = 0,
-  GTK_STATE_FLAG_ACTIVE       = 1 << 0,
-  GTK_STATE_FLAG_PRELIGHT     = 1 << 1,
-  GTK_STATE_FLAG_SELECTED     = 1 << 2,
-  GTK_STATE_FLAG_INSENSITIVE  = 1 << 3,
-  GTK_STATE_FLAG_INCONSISTENT = 1 << 4,
-  GTK_STATE_FLAG_FOCUSED      = 1 << 5,
-  GTK_STATE_FLAG_BACKDROP     = 1 << 6,
-  GTK_STATE_FLAG_DIR_LTR      = 1 << 7,
-  GTK_STATE_FLAG_DIR_RTL      = 1 << 8,
-  GTK_STATE_FLAG_LINK         = 1 << 9,
-  GTK_STATE_FLAG_VISITED      = 1 << 10,
-  GTK_STATE_FLAG_CHECKED      = 1 << 11,
-  GTK_STATE_FLAG_DROP_ACTIVE  = 1 << 12
+  GTK_STATE_FLAG_NORMAL        = 0,
+  GTK_STATE_FLAG_ACTIVE        = 1 << 0,
+  GTK_STATE_FLAG_PRELIGHT      = 1 << 1,
+  GTK_STATE_FLAG_SELECTED      = 1 << 2,
+  GTK_STATE_FLAG_INSENSITIVE   = 1 << 3,
+  GTK_STATE_FLAG_INCONSISTENT  = 1 << 4,
+  GTK_STATE_FLAG_FOCUSED       = 1 << 5,
+  GTK_STATE_FLAG_BACKDROP      = 1 << 6,
+  GTK_STATE_FLAG_DIR_LTR       = 1 << 7,
+  GTK_STATE_FLAG_DIR_RTL       = 1 << 8,
+  GTK_STATE_FLAG_LINK          = 1 << 9,
+  GTK_STATE_FLAG_VISITED       = 1 << 10,
+  GTK_STATE_FLAG_CHECKED       = 1 << 11,
+  GTK_STATE_FLAG_DROP_ACTIVE   = 1 << 12,
+  GTK_STATE_FLAG_FOCUS_VISIBLE = 1 << 13
 } GtkStateFlags;
 
 /**
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 6e0b746..638baae 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -34,7 +34,7 @@
 
 G_BEGIN_DECLS
 
-#define GTK_STATE_FLAGS_BITS 13
+#define GTK_STATE_FLAGS_BITS 14
 
 struct _GtkWidgetPrivate
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]