aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2007-08-23 03:54:35 +0800
committerChristian Persch <chpe@src.gnome.org>2007-08-23 03:54:35 +0800
commitc8883e3241f1ceb43514e66aa28e661e5cfd3013 (patch)
tree26047799dead03b5b2efeeee9213abd2263a800a /embed
parent16db7bb6abe165b89b5382676de8e22f8cf9ebe1 (diff)
downloadgsoc2013-epiphany-c8883e3241f1ceb43514e66aa28e661e5cfd3013.tar
gsoc2013-epiphany-c8883e3241f1ceb43514e66aa28e661e5cfd3013.tar.gz
gsoc2013-epiphany-c8883e3241f1ceb43514e66aa28e661e5cfd3013.tar.bz2
gsoc2013-epiphany-c8883e3241f1ceb43514e66aa28e661e5cfd3013.tar.lz
gsoc2013-epiphany-c8883e3241f1ceb43514e66aa28e661e5cfd3013.tar.xz
gsoc2013-epiphany-c8883e3241f1ceb43514e66aa28e661e5cfd3013.tar.zst
gsoc2013-epiphany-c8883e3241f1ceb43514e66aa28e661e5cfd3013.zip
Enable printing to PDF file on gecko 1.9, now that moz#367907 is fixed.
2007-08-22 Christian Persch <chpe@gnome.org> * embed/mozilla/GeckoPrintService.cpp: Enable printing to PDF file on gecko 1.9, now that moz#367907 is fixed. svn path=/trunk/; revision=7295
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/GeckoPrintService.cpp4
1 files changed, 2 insertions, 2 deletions
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);