Warning: PrintCustomWidget is deprecated since 2.40.
Allows to embed a custom widget in print dialog.
A WebKitPrintCustomWidget allows to embed a custom widget in the print dialog by connecting to the
create_custom_widget signal, creating a new
WebKitPrintCustomWidget with PrintCustomWidget and
returning it from there. You can later use run_dialog to display the
dialog.
Unfortunately, use of custom widgets is incompatible with modern containerized application frameworks like Flatpak. A print dialog
constructed in the application process will not have access to host printers, so instead it must be constructed by a desktop portal
service running on the host system. Because this print dialog runs in a separate process, it's not possible to attach a custom widget.