summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-09 15:15:45 -0400
committerEmmanuele Bassi <ebassi@gnome.org>2020-10-12 16:19:32 +0100
commit8f201337695cfb5f961b92bee17f8d76fff95fe0 (patch)
treeea1bb0a623d168f45167e520b10da191547e276e /gtk
parent55b1fbd0f3538f1d3430aad4793037d57ada08fa (diff)
downloadgtk+-8f201337695cfb5f961b92bee17f8d76fff95fe0.tar.gz
atspicontext: Print out the a11y bus address
Make our debug spew useful: Having the bus address makes it easy to jump on the a11y bus to look around with dbus tools.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/a11y/gtkatspicontext.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index 1da3d20fc6..323b079860 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -473,7 +473,7 @@ get_bus_address (GdkDisplay *display)
bus_address = g_getenv ("AT_SPI_BUS_ADDRESS");
if (bus_address != NULL && *bus_address != '\0')
{
- GTK_NOTE (A11Y, g_message ("Using ATSPI bus address from environment"));
+ GTK_NOTE (A11Y, g_message ("Using ATSPI bus address from environment: %s", bus_address));
g_object_set_data_full (G_OBJECT (display), "-gtk-atspi-bus-address",
g_strdup (bus_address),
g_free);
@@ -487,6 +487,7 @@ get_bus_address (GdkDisplay *display)
{
char *addr = get_bus_address_dbus (display);
+ GTK_NOTE (A11Y, g_message ("Using ATSPI bus address from D-Bus: %s", addr));
g_object_set_data_full (G_OBJECT (display), "-gtk-atspi-bus-address",
addr,
g_free);
@@ -503,7 +504,14 @@ get_bus_address (GdkDisplay *display)
char *addr = get_bus_address_dbus (display);
if (addr == NULL)
- addr = get_bus_address_x11 (display);
+ {
+ addr = get_bus_address_x11 (display);
+ GTK_NOTE (A11Y, g_message ("Using ATSPI bus address from X11: %s", addr));
+ }
+ else
+ {
+ GTK_NOTE (A11Y, g_message ("Using ATSPI bus address from D-Bus: %s", addr));
+ }
g_object_set_data_full (G_OBJECT (display), "-gtk-atspi-bus-address",
addr,