]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Remove unneeded #ifdef
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 3 May 2010 12:53:13 +0000 (14:53 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 3 May 2010 12:53:40 +0000 (14:53 +0200)
configure.ac
libview/ev-print-operation.c

index 3621326e9ade2a503e504aa4a38a002bd5775aa3..069ded87121c8d2d25e375369804180dffea62c1 100644 (file)
@@ -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
 
 # ******************
index fc631a055476de07b2d81960a80f2b21084590e6..b39aa4ae89f7c563fd4a4458cfec79610a3c93f6 100644 (file)
@@ -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);
 }