Sets our main struct and passes it to the parent class.
Creates a new GtkPrintUnixDialog.
Adds a custom tab to the print dialog.
Gets the current page of the GtkPrintUnixDialog.
Gets whether to embed the page setup.
Gets whether there is a selection.
Gets the capabilities that have been set on this GtkPrintUnixDialog.
Gets the page setup that is used by the GtkPrintUnixDialog.
Gets whether a page setup was set by the user.
Get the main Gtk struct
Gets the currently selected printer.
Gets a new GtkPrintSettings object that represents the current values in the print dialog.
the main Gtk struct as a void*
Gets whether the print dialog allows user to print a selection.
Sets the current page number.
Embed page size combo box and orientation combo box into page setup page.
Sets whether a selection exists.
This lets you specify the printing capabilities your application supports.
Sets the page setup of the GtkPrintUnixDialog.
Sets the GtkPrintSettings for the GtkPrintUnixDialog.
Sets whether the print dialog allows user to print a selection.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Adds an activatable widget to the action area of a GtkDialog.
Adds a button with the given text.
Returns the content area of @dialog.
Returns the header bar of @dialog.
Gets the response id of a widget in the action area of a dialog.
Gets the widget button that uses the given response ID in the action area of a dialog.
Emits the ::response signal with the given response ID.
Sets the default widget for the dialog based on the response ID.
A convenient way to sensitize/desensitize dialog buttons.
Emitted when the user uses a keybinding to close the dialog.
Emitted when an action widget is clicked.
GtkPrintUnixDialog implements a print dialog for platforms which don’t provide a native print dialog, like Unix.
It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API with [class@Gtk.PrintOperation].
In order to print something with GtkPrintUnixDialog, you need to use [method@Gtk.PrintUnixDialog.get_selected_printer] to obtain a [class@Gtk.Printer] object and use it to construct a [class@Gtk.PrintJob] using [ctor@Gtk.PrintJob.new].
GtkPrintUnixDialog uses the following response values:
- %GTK_RESPONSE_OK: for the “Print” button - %GTK_RESPONSE_APPLY: for the “Preview” button - %GTK_RESPONSE_CANCEL: for the “Cancel” button
GtkPrintUnixDialog as GtkBuildable
The GtkPrintUnixDialog implementation of the GtkBuildable interface exposes its @notebook internal children with the name “notebook”.
An example of a GtkPrintUnixDialog UI definition fragment:
CSS nodes
GtkPrintUnixDialog has a single CSS node with name window. The style classes dialog and print are added.