mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
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.
This commit is contained in:
parent
fd3a6299ce
commit
0a46baeb56
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user