diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-10-25 14:21:01 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-10-25 14:21:01 (GMT) |
commit | 0ea65770661ff5769d7539afb77dd634a78e9fd4 (patch) | |
tree | bb7bf363c974454b5d9e8a43888e6851ec329f76 | |
parent | 81a61466af2516daf6ba4b716234c0bcbeee959c (diff) |
Revert "[printing] Make evince output pdf on supported printers"
See https://bugs.launchpad.net/ubuntu/+source/evince/+bug/451265
-rw-r--r-- | shell/ev-print-operation.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c index 9ea42c1..08c655d 100644 --- a/shell/ev-print-operation.c +++ b/shell/ev-print-operation.c @@ -1252,13 +1252,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); |