Gtk.PrintOperation.prototype.set_has_selection

function set_has_selection(has_selection:Boolean):void {
    // Gjs wrapper for gtk_print_operation_set_has_selection()
}

Sets whether there is a selection to print.

Application has to set number of pages to which the selection will draw by Gtk.set_n_pages in a callback of Gtk.begin-print.

Since 2.18

has_selection

true indicates that a selection exists