]> www.fi.muni.cz Git - evince.git/commitdiff
Revert "[printing] Make evince output pdf on supported printers"
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 25 Oct 2009 14:21:01 +0000 (15:21 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 25 Oct 2009 14:22:03 +0000 (15:22 +0100)
See https://bugs.launchpad.net/ubuntu/+source/evince/+bug/451265

shell/ev-print-operation.c

index 92277d066c5eeb186f20d579859b43ebf685fb3b..730db80a747c72ffd7f08f8c58d56516922a469e 100644 (file)
@@ -1253,13 +1253,8 @@ ev_print_operation_export_print_dialog_response_cb (GtkDialog              *dial
 
        get_first_and_last_page (export, &first_page, &last_page);
 
-       if (file_format) {
-               export->fc.format = g_ascii_strcasecmp (file_format, "pdf") == 0 ?
-                       EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS;
-       } else {
-               export->fc.format = gtk_printer_accepts_pdf (printer) ?
-                       EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS;
-       }
+       export->fc.format = file_format && g_ascii_strcasecmp (file_format, "pdf") == 0 ?
+               EV_FILE_FORMAT_PDF : EV_FILE_FORMAT_PS;
        export->fc.filename = export->temp_file;
        export->fc.first_page = MIN (first_page, last_page);
        export->fc.last_page = MAX (first_page, last_page);