evince_save_LIBS=$LIBS
LIBS="$LIBS $BACKEND_LIBS"
AC_CHECK_FUNCS(cairo_format_stride_for_width)
-AC_CHECK_FUNCS(gtk_print_operation_get_n_pages_to_print)
LIBS=$evince_save_LIBS
# ******************
static void
ev_print_operation_print_status_changed (EvPrintOperationPrint *print)
{
-#ifdef HAVE_GTK_PRINT_OPERATION_GET_N_PAGES_TO_PRINT
GtkPrintStatus status;
status = gtk_print_operation_get_status (print->op);
if (status == GTK_PRINT_STATUS_GENERATING_DATA)
print->n_pages_to_print = gtk_print_operation_get_n_pages_to_print (print->op);
-#endif
}
static void
EvPrintOperation *op = EV_PRINT_OPERATION (print);
gtk_print_operation_draw_page_finish (print->op);
-#ifdef HAVE_GTK_PRINT_OPERATION_GET_N_PAGES_TO_PRINT
+
print->total++;
ev_print_operation_update_status (op, print->total,
print->n_pages_to_print,
print->total / (gdouble)print->n_pages_to_print);
-#endif
ev_job_print_set_cairo (job, NULL);
}