setup
Description:
This function presents a print dialog to let the user select a printer, and set up print settings and page setup.
The callback
will be called when the dialog is dismissed. It should call [method@Gtk.PrintDialog.setup_finish] to obtain the
results in the form of a [struct@Gtk.PrintSetup], that can then be passed to [method@Gtk.PrintDialog.print] or [
method@Gtk.PrintDialog.print_file].
One possible use for this method is to have the user select a printer, then show a page setup UI in the application (e.g. to arrange images on a page), then call [method@Gtk.PrintDialog.print] on this to do the printing without further user interaction.
Parameters:
this |
a `GtkPrintDialog` |
parent |
the parent `GtkWindow` |
cancellable |
a `GCancellable` to cancel the operation |
callback |
a callback to call when the operation is complete |
user_data |
data to pass to |