PrintOperation.setHasSelection

void setHasSelection(bool hasSelection)

Sets whether there is a selection to print.

Application has to set number of pages to which the selection will draw by gtk.print_operation.PrintOperation.setNPages in a handler for the gtk.print_operation.PrintOperation.beginPrint signal.

Parameters

hasSelectiontrue indicates that a selection exists