From 6fbe8c7d3aa54b7baf0db9373f53d94ddefab457 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 03 May 2010 12:53:13 +0000 Subject: [libview] Remove unneeded #ifdef --- diff --git a/configure.ac b/configure.ac index 3621326..069ded8 100644 --- a/configure.ac +++ b/configure.ac @@ -223,7 +223,6 @@ dnl ===== Check special functions 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 # ****************** diff --git a/libview/ev-print-operation.c b/libview/ev-print-operation.c index fc631a0..b39aa4a 100644 --- a/libview/ev-print-operation.c +++ b/libview/ev-print-operation.c @@ -1679,13 +1679,11 @@ ev_print_operation_print_done (EvPrintOperationPrint *print, 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 @@ -1695,12 +1693,11 @@ print_job_finished (EvJobPrint *job, 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); } -- cgit v0.9.1