summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-11-22 18:39:39 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2020-11-23 14:34:46 +0000
commit0a46baeb5684533c7300b6b5212a7fd080f71d98 (patch)
tree33b2ccc7c3ececf5abfce2d5a4311724b22aa5c3
parentfd3a6299ce0d325d332ec3630a756ddc94ecd76a (diff)
downloadgtk+-0a46baeb5684533c7300b6b5212a7fd080f71d98.tar.gz
a11y: Turn critical warnings into debug messages
The accessibility bus might not be available, and if it isn't the case, it means something has failed at a level where the user can't do much about it. There's no need to emit a critical warning.
-rw-r--r--gtk/a11y/gtkatspicontext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index 10eecbdfe4..3216c33a40 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -1598,7 +1598,7 @@ get_bus_address_dbus (GdkDisplay *display)
if (error != NULL)
{
- g_critical ("Unable to acquire session bus: %s", error->message);
+ GTK_NOTE (A11Y, g_message ("Unable to acquire session bus: %s", error->message));
g_error_free (error);
return NULL;
}
@@ -1615,8 +1615,8 @@ get_bus_address_dbus (GdkDisplay *display)
&error);
if (error != NULL)
{
- g_critical ("Unable to acquire the address of the accessibility bus: %s",
- error->message);
+ GTK_NOTE (A11Y, g_message ("Unable to acquire the address of the accessibility bus: %s",
+ error->message));
g_error_free (error);
}