gtk/modules/printbackends
Simon McVittie 9d9e665f34 printing: Treat any G_DBUS_ERROR contacting Avahi as non-problematic
If we get an error from the message bus (dbus-daemon or dbus-broker),
for example ServiceUnknown if Avahi is not installed or perhaps
SpawnFailed if the service is disabled, it is mapped to a GLib GError.
The errors typically emitted by the message bus belong to the GDBusError
domain, but if nobody has registered the G_DBUS_ERROR domain yet,
then they might be mapped to G_IO_ERROR_DBUS_ERROR instead.

Previously, this code ignored G_IO_ERROR_DBUS_ERROR, but emitted a
warning if the error happens to have been mapped to G_DBUS_ERROR.
This resulted in action-at-a-distance: an unrelated component
triggering registration of the G_DBUS_ERROR domain would make printing
dialogs log the warning. This seems undesirable, and in particular it
can cause test failures, because GLib's test framework makes warnings
fatal by default.

Signed-off-by: Simon McVittie <smcv@debian.org>
2024-10-15 15:44:33 +01:00
..
gtkcupssecretsutils.c gtk: Use the new debug macros 2022-09-23 18:12:39 -04:00
gtkcupssecretsutils.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
gtkcupsutils.c gtk: Use the new debug macros 2022-09-23 18:12:39 -04:00
gtkcupsutils.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
gtkprintbackendcpdb.c printing: Add context to some strings 2024-04-04 16:56:50 +02:00
gtkprintbackendcpdb.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
gtkprintbackendcups.c printing: Treat any G_DBUS_ERROR contacting Avahi as non-problematic 2024-10-15 15:44:33 +01:00
gtkprintbackendcups.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
gtkprintbackendfile.c modules/printbackends/gtkprintbackendfile.c: add CAIRO_HAS checks 2024-09-17 10:55:40 +02:00
gtkprintbackendfile.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
gtkprintbackendutils.c printing: Avoid getrandom 2023-02-17 17:20:44 -05:00
gtkprintbackendutils.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
gtkprintercpdb.c New CPDB print backend for GTK Print Dialog 2023-02-11 01:13:48 +05:30
gtkprintercpdb.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
gtkprintercups.c Drop gtkintl.h 2022-09-24 10:03:37 -04:00
gtkprintercups.h printing: Convert headers to #pragma once 2023-12-20 09:44:29 -05:00
meson.build Update dependencies for CPDB print backend 2023-02-14 23:39:13 +05:30