PrintDialog.setup

void setup(gtk.window.Window parent = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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 gtk.print_dialog.PrintDialog.setupFinish to obtain the results in the form of a gtk.print_setup.PrintSetup, that can then be passed to gtk.print_dialog.PrintDialog.print or gtk.print_dialog.PrintDialog.printFile.

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 gtk.print_dialog.PrintDialog.print on self to do the printing without further user interaction.

Parameters

parentthe parent gtk.window.Window
cancellablea gio.cancellable.Cancellable to cancel the operation
callbacka callback to call when the operation is complete