[gtk/ebassi/new-a11y: 31/32] testatcontext: Use the new debug flag



commit 0b3240c10af0c6c973845845d14ebd15f4213538
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 17 10:36:43 2020 -0400

    testatcontext: Use the new debug flag
    
    Only dump a11y state if GTK_DEBUG=accessibility is set.

 gtk/gtktestatcontext.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtktestatcontext.c b/gtk/gtktestatcontext.c
index b7eb29b642..550e49d958 100644
--- a/gtk/gtktestatcontext.c
+++ b/gtk/gtktestatcontext.c
@@ -23,7 +23,9 @@
 #include "gtktestatcontextprivate.h"
 
 #include "gtkatcontextprivate.h"
+#include "gtkdebug.h"
 #include "gtkenums.h"
+#include "gtkprivate.h"
 #include "gtktypebuiltins.h"
 
 struct _GtkTestATContext
@@ -53,15 +55,16 @@ gtk_test_at_context_state_change (GtkATContext                *self,
   char *properties_str = gtk_accessible_attribute_set_to_string (properties);
   char *relations_str = gtk_accessible_attribute_set_to_string (relations);
 
-  g_print ("*** Accessible state changed for accessible ā€œ%sā€, with role %d:\n"
-           "***     states = %s\n"
-           "*** properties = %s\n"
-           "***  relations = %s\n",
-           G_OBJECT_TYPE_NAME (accessible),
-           role,
-           states_str,
-           properties_str,
-           relations_str);
+  GTK_NOTE(A11Y,
+   g_print ("*** Accessible state changed for accessible ā€œ%sā€, with role %d:\n"
+            "***     states = %s\n"
+            "*** properties = %s\n"
+            "***  relations = %s\n",
+             G_OBJECT_TYPE_NAME (accessible),
+            role,
+            states_str,
+            properties_str,
+            relations_str));
 
   g_free (states_str);
   g_free (properties_str);


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