[gtk/matthiasc/a11y-logging: 1/3] Add GTK_DEBUG=accessibility



commit a202322610b9605715433e1ccd9066fcf7b7f304
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 17 10:36:20 2020 -0400

    Add GTK_DEBUG=accessibility
    
    Add a debug flag for accessibility-related debug spew.

 gtk/gtkdebug.h | 1 +
 gtk/gtkmain.c  | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/gtk/gtkdebug.h b/gtk/gtkdebug.h
index 4b1a4806e3..451420a603 100644
--- a/gtk/gtkdebug.h
+++ b/gtk/gtkdebug.h
@@ -52,6 +52,7 @@ typedef enum {
   GTK_DEBUG_SNAPSHOT        = 1 << 14,
   GTK_DEBUG_CONSTRAINTS     = 1 << 15,
   GTK_DEBUG_BUILDER_OBJECTS = 1 << 16,
+  GTK_DEBUG_A11Y            = 1 << 17,
 } GtkDebugFlag;
 
 #ifdef G_ENABLE_DEBUG
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 5f03101e4b..5d84ae411e 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -182,6 +182,7 @@ static const GdkDebugKey gtk_debug_keys[] = {
   { "touchscreen", GTK_DEBUG_TOUCHSCREEN, "Pretend the pointer is a touchscreen" },
   { "layout", GTK_DEBUG_LAYOUT, "Show layout borders" },
   { "snapshot", GTK_DEBUG_SNAPSHOT, "Generate debug render nodes" },
+  { "accessibility", GTK_DEBUG_A11Y, "Information about accessibility state changes" },
 };
 #endif /* G_ENABLE_DEBUG */
 


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