PrintCustomWidget


Object Hierarchy:

WebKit.PrintCustomWidget WebKit.PrintCustomWidget WebKit.PrintCustomWidget GLib.Object GLib.Object GLib.Object->WebKit.PrintCustomWidget

Description:

[ CCode ( type_id = "webkit_print_custom_widget_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "2.40" , since = "2.16" ) ]
public class PrintCustomWidget : Object

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.


Namespace: WebKit
Package: webkit2gtk-4.0

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members: