get_n_pages_to_print


Description:

public int get_n_pages_to_print ()

Returns the number of pages that will be printed.

Note that this value is set during print preparation phase (gtk_print_status_preparing), so this function should never be called before the data generation phase (gtk_print_status_generating_data). You can connect to the [signal@Gtk.PrintOperation:GtkPrintOperation:status-changed] signal and call get_n_pages_to_print when print status is gtk_print_status_generating_data.

This is typically used to track the progress of print operation.

Parameters:

this

a `GtkPrintOperation`

Returns:

the number of pages that will be printed