mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
Add a state flag for visible focus
The new flag is called GTK_STATE_FLAGS_FOCUS_VISIBLE.
This commit is contained in:
parent
b6c41e57e2
commit
18b8a7f91f
@ -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_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_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_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
|
* Describes a widget state. Widget states are used to match the widget
|
||||||
* against CSS pseudo-classes. Note that GTK extends the regular CSS
|
* against CSS pseudo-classes. Note that GTK extends the regular CSS
|
||||||
@ -793,20 +794,21 @@ typedef enum
|
|||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
GTK_STATE_FLAG_NORMAL = 0,
|
GTK_STATE_FLAG_NORMAL = 0,
|
||||||
GTK_STATE_FLAG_ACTIVE = 1 << 0,
|
GTK_STATE_FLAG_ACTIVE = 1 << 0,
|
||||||
GTK_STATE_FLAG_PRELIGHT = 1 << 1,
|
GTK_STATE_FLAG_PRELIGHT = 1 << 1,
|
||||||
GTK_STATE_FLAG_SELECTED = 1 << 2,
|
GTK_STATE_FLAG_SELECTED = 1 << 2,
|
||||||
GTK_STATE_FLAG_INSENSITIVE = 1 << 3,
|
GTK_STATE_FLAG_INSENSITIVE = 1 << 3,
|
||||||
GTK_STATE_FLAG_INCONSISTENT = 1 << 4,
|
GTK_STATE_FLAG_INCONSISTENT = 1 << 4,
|
||||||
GTK_STATE_FLAG_FOCUSED = 1 << 5,
|
GTK_STATE_FLAG_FOCUSED = 1 << 5,
|
||||||
GTK_STATE_FLAG_BACKDROP = 1 << 6,
|
GTK_STATE_FLAG_BACKDROP = 1 << 6,
|
||||||
GTK_STATE_FLAG_DIR_LTR = 1 << 7,
|
GTK_STATE_FLAG_DIR_LTR = 1 << 7,
|
||||||
GTK_STATE_FLAG_DIR_RTL = 1 << 8,
|
GTK_STATE_FLAG_DIR_RTL = 1 << 8,
|
||||||
GTK_STATE_FLAG_LINK = 1 << 9,
|
GTK_STATE_FLAG_LINK = 1 << 9,
|
||||||
GTK_STATE_FLAG_VISITED = 1 << 10,
|
GTK_STATE_FLAG_VISITED = 1 << 10,
|
||||||
GTK_STATE_FLAG_CHECKED = 1 << 11,
|
GTK_STATE_FLAG_CHECKED = 1 << 11,
|
||||||
GTK_STATE_FLAG_DROP_ACTIVE = 1 << 12
|
GTK_STATE_FLAG_DROP_ACTIVE = 1 << 12,
|
||||||
|
GTK_STATE_FLAG_FOCUS_VISIBLE = 1 << 13
|
||||||
} GtkStateFlags;
|
} GtkStateFlags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GTK_STATE_FLAGS_BITS 13
|
#define GTK_STATE_FLAGS_BITS 14
|
||||||
|
|
||||||
struct _GtkWidgetPrivate
|
struct _GtkWidgetPrivate
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user