diff -up yelp-2.20.0/src/yelp-gecko-services.cpp.xl yelp-2.20.0/src/yelp-gecko-services.cpp
--- yelp-2.20.0/src/yelp-gecko-services.cpp.xl	2007-09-17 22:49:09.000000000 +0200
+++ yelp-2.20.0/src/yelp-gecko-services.cpp	2007-11-22 11:00:33.000000000 +0100
@@ -298,7 +298,11 @@ PrintListener::SetPrintSettings (YelpPri
   target->SetPrintInColor (gtk_print_settings_get_use_color (settings->config));
 
   target->SetPaperSizeUnit(nsIPrintSettings::kPaperSizeMillimeters);
-  target->SetPaperSize (nsIPrintSettings::kPaperSizeDefined);
+#ifdef HAVE_GECKO_1_9 
+  target->SetPaperSizeType(nsIPrintSettings::kPaperSizeDefined);
+#else
+  target->SetPaperSize(nsIPrintSettings::kPaperSizeDefined);
+#endif
 
   GtkPaperSize *paperSize = gtk_page_setup_get_paper_size (settings->setup);
   if (!paperSize) {
