aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/GeckoPrintService.cpp4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 85d7cf69d..c696af5e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2007-08-19 Diego Escalante Urrelo <diegoe@gnome.org>
* lib/widgets/ephy-location-entry.c:
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);