[gtk/ebassi/new-a11y: 61/63] testatcontext: Use the new debug flag
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/new-a11y: 61/63] testatcontext: Use the new debug flag
- Date: Mon, 20 Jul 2020 12:11:35 +0000 (UTC)
commit 49dbe4c1b548493a2c98a8b21ae53197ebef77fc
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]