b=546093 only advertise pdf and ps format for sending to the printer backend r=karlt
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 18 Feb 2010 13:45:38 +1300
changeset 33716 b0ff8632d5cec8570634e035dc51259e332c8e0e
parent 33715 956e710bd1bfeb4f4fadc1a431c295f02c689124
child 33717 60dce6cf3aaa5853fbf049f9d8b835c847004fde
push id1142
push usertimeless@mozdev.org
push dateTue, 09 Mar 2010 14:35:12 +0000
reviewerskarlt
bugs546093
milestone1.9.2.2pre
b=546093 only advertise pdf and ps format for sending to the printer backend r=karlt a=dveditz
widget/src/gtk2/nsPrintDialogGTK.cpp
--- a/widget/src/gtk2/nsPrintDialogGTK.cpp
+++ b/widget/src/gtk2/nsPrintDialogGTK.cpp
@@ -236,16 +236,18 @@ nsPrintDialogWidgetGTK::nsPrintDialogWid
 
   gtk_print_unix_dialog_set_manual_capabilities(GTK_PRINT_UNIX_DIALOG(dialog),
                     GtkPrintCapabilities(
                         GTK_PRINT_CAPABILITY_PAGE_SET
                       | GTK_PRINT_CAPABILITY_COPIES
                       | GTK_PRINT_CAPABILITY_COLLATE
                       | GTK_PRINT_CAPABILITY_REVERSE
                       | GTK_PRINT_CAPABILITY_SCALE
+                      | GTK_PRINT_CAPABILITY_GENERATE_PDF
+                      | GTK_PRINT_CAPABILITY_GENERATE_PS
                     )
                   );
 
   // The vast majority of magic numbers in this widget construction are padding. e.g. for
   // the set_border_width below, 12px matches that of just about every other window.
   GtkWidget* custom_options_tab = gtk_vbox_new(FALSE, 0);
   gtk_container_set_border_width(GTK_CONTAINER(custom_options_tab), 12);
   GtkWidget* tab_label = gtk_label_new(GetUTF8FromBundle("optionsTabLabel").get());