b=551899 embed page size and orientation options in print dialog, proposed by Ritesh Khadgaray <khadgaray@gmail.com> r=karlt
authorMartin Stránský <stransky@redhat.com>
Fri, 26 Mar 2010 15:03:18 +1300
changeset 39859 1daf1dc743c236aa58839e3ea216baa6d7c20a48
parent 39858 3c56d96a656ddf73579ba9ea31ec6ee69f1a7ac2
child 39860 f0a50c3f10d3ffbb77218608b22e29f184a01f60
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerskarlt
bugs551899
milestone1.9.3a4pre
b=551899 embed page size and orientation options in print dialog, proposed by Ritesh Khadgaray <khadgaray@gmail.com> r=karlt
widget/src/gtk2/nsPrintDialogGTK.cpp
--- a/widget/src/gtk2/nsPrintDialogGTK.cpp
+++ b/widget/src/gtk2/nsPrintDialogGTK.cpp
@@ -301,16 +301,17 @@ nsPrintDialogWidgetGTK::nsPrintDialogWid
   PRBool canSelectText;
   aSettings->GetPrintOptions(nsIPrintSettings::kEnableSelectionRB, &canSelectText);
   if (gtk_major_version > 2 ||
       (gtk_major_version == 2 && gtk_minor_version >= 18)) {
     useNativeSelection = PR_TRUE;
     g_object_set(G_OBJECT(dialog),
                  "support-selection", TRUE,
                  "has-selection", canSelectText,
+                 "embed-page-setup", TRUE,
                  NULL);
   } else {
     useNativeSelection = PR_FALSE;
     selection_only_toggle = gtk_check_button_new_with_mnemonic(GetUTF8FromBundle("selectionOnly").get());
     gtk_widget_set_sensitive(selection_only_toggle, canSelectText);
     gtk_box_pack_start(GTK_BOX(check_buttons_container), selection_only_toggle, FALSE, FALSE, 0);
   }