From c8883e3241f1ceb43514e66aa28e661e5cfd3013 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Wed, 22 Aug 2007 19:54:35 +0000 Subject: Enable printing to PDF file on gecko 1.9, now that moz#367907 is fixed. 2007-08-22 Christian Persch * embed/mozilla/GeckoPrintService.cpp: Enable printing to PDF file on gecko 1.9, now that moz#367907 is fixed. svn path=/trunk/; revision=7295 --- embed/mozilla/GeckoPrintService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embed') diff --git a/embed/mozilla/GeckoPrintService.cpp b/embed/mozilla/GeckoPrintService.cpp index 8be8263b9..71c5a6a6d 100644 --- a/embed/mozilla/GeckoPrintService.cpp +++ b/embed/mozilla/GeckoPrintService.cpp @@ -180,7 +180,7 @@ GeckoPrintService::ShowPrintDialog (nsIDOMWindow *aParent, GTK_PRINT_CAPABILITY_REVERSE | GTK_PRINT_CAPABILITY_SCALE | GTK_PRINT_CAPABILITY_GENERATE_PS); -#if 0 //def HAVE_GECKO_1_9 +#ifdef HAVE_GECKO_1_9 capabilities = GtkPrintCapabilities (capabilities | GTK_PRINT_CAPABILITY_GENERATE_PDF); #endif gtk_print_unix_dialog_set_manual_capabilities (print_dialog, capabilities); @@ -569,7 +569,7 @@ GeckoPrintService::TranslateSettings (GtkPrintSettings *aGtkSettings, aSettings->SetPrintPageDelay (50); if (aIsForPrinting) { -#if 0 //def HAVE_GECKO_1_9 +#ifdef HAVE_GECKO_1_9 NS_ENSURE_TRUE (aPrinter, NS_ERROR_FAILURE); const char *format = gtk_print_settings_get (aGtkSettings, GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT); -- cgit v1.2.3