aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2007-10-11 18:45:50 +0800
committerChristian Persch <chpe@src.gnome.org>2007-10-11 18:45:50 +0800
commit4a63f3304677cecf7d23943c90eac68bc2e2adf7 (patch)
treeaec01d27bff7df5820aaf0199bbb184e8f3fa349 /embed/mozilla
parent4d5377061da49f84df7406ac5008ea66dcbc292a (diff)
downloadgsoc2013-epiphany-4a63f3304677cecf7d23943c90eac68bc2e2adf7.tar
gsoc2013-epiphany-4a63f3304677cecf7d23943c90eac68bc2e2adf7.tar.gz
gsoc2013-epiphany-4a63f3304677cecf7d23943c90eac68bc2e2adf7.tar.bz2
gsoc2013-epiphany-4a63f3304677cecf7d23943c90eac68bc2e2adf7.tar.lz
gsoc2013-epiphany-4a63f3304677cecf7d23943c90eac68bc2e2adf7.tar.xz
gsoc2013-epiphany-4a63f3304677cecf7d23943c90eac68bc2e2adf7.tar.zst
gsoc2013-epiphany-4a63f3304677cecf7d23943c90eac68bc2e2adf7.zip
Take the page orientation from the page setup, not from the print settings.
Bug #485670 (see also gtk+ bug #485685). svn path=/trunk/; revision=7527
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/GeckoPrintService.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/mozilla/GeckoPrintService.cpp b/embed/mozilla/GeckoPrintService.cpp
index 71c5a6a6d..140864846 100644
--- a/embed/mozilla/GeckoPrintService.cpp
+++ b/embed/mozilla/GeckoPrintService.cpp
@@ -650,7 +650,8 @@ GeckoPrintService::TranslateSettings (GtkPrintSettings *aGtkSettings,
gtk_print_settings_set_page_ranges (aGtkSettings, NULL, 0);
gtk_print_settings_set_page_set (aGtkSettings, GTK_PAGE_SET_ALL);
- switch (gtk_print_settings_get_orientation (aGtkSettings)) {
+ /* We must use the page setup here instead of the print settings, see gtk bug #485685 */
+ switch (gtk_page_setup_get_orientation (aPageSetup)) {
case GTK_PAGE_ORIENTATION_PORTRAIT:
case GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT: /* not supported */
aSettings->SetOrientation (nsIPrintSettings::kPortraitOrientation);