[gtk/ebassi/for-master: 1/2] a11y: Turn critical warnings into debug messages
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 1/2] a11y: Turn critical warnings into debug messages
- Date: Sun, 22 Nov 2020 18:42:25 +0000 (UTC)
commit 59c99dfcacdd5bd33621dff3cc0928965b78edda
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Nov 22 18:39:39 2020 +0000
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.
gtk/a11y/gtkatspicontext.c | 6 +++---
1 file 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]