[gtk/matthiasc/a11y-logging: 2/3] testatcontext: Use the new debug flag
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/a11y-logging: 2/3] testatcontext: Use the new debug flag
- Date: Fri, 17 Jul 2020 14:41:59 +0000 (UTC)
commit 4f0990581479be19a3e2eb98f287b984e025f082
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 8eade3566c..8ca3068ef9 100644
--- a/gtk/gtktestatcontext.c
+++ b/gtk/gtktestatcontext.c
@@ -24,6 +24,8 @@
#include "gtkatcontextprivate.h"
#include "gtkenums.h"
+#include "gtkprivate.h"
+#include "gtkdebug.h"
struct _GtkTestATContext
{
@@ -47,15 +49,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]