]> www.fi.muni.cz Git - evince.git/blobdiff - libview/ev-print-operation.c
Updated Danish translation
[evince.git] / libview / ev-print-operation.c
index a1a3332d2dc4c9a4a475d8fa0733d3a5daf5d891..b39aa4ae89f7c563fd4a4458cfec79610a3c93f6 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include <config.h>
@@ -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);
 }