[evince] [libview] Remove unneeded #ifdef
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] [libview] Remove unneeded #ifdef
- Date: Mon, 3 May 2010 12:53:58 +0000 (UTC)
commit 6fbe8c7d3aa54b7baf0db9373f53d94ddefab457
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Mon May 3 14:53:13 2010 +0200
[libview] Remove unneeded #ifdef
configure.ac | 1 -
libview/ev-print-operation.c | 5 +----
2 files changed, 1 insertions(+), 5 deletions(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]