Bug 1204284: Show paper size options in OS X print dialog. r=smichaud
authorJosh Aas <joshmoz@gmail.com>
Tue, 15 Sep 2015 15:40:44 -0500
changeset 295291 52b0a222ce42821d100c8abb88f8f8728b7303c0
parent 295290 d24b11e4beb29e7b0941121b93b10fc155c53a4e
child 295292 c32abb6c9e65860e4f12e5dbc4668b36779ee8fd
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmichaud
bugs1204284
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1204284: Show paper size options in OS X print dialog. r=smichaud
widget/cocoa/nsPrintDialogX.mm
--- a/widget/cocoa/nsPrintDialogX.mm
+++ b/widget/cocoa/nsPrintDialogX.mm
@@ -73,16 +73,17 @@ nsPrintDialogServiceX::Show(nsIDOMWindow
   // Put the print info into the current print operation, since that's where
   // [panel runModal] will look for it. We create the view because otherwise
   // we'll get unrelated warnings printed to the console.
   NSView* tmpView = [[NSView alloc] init];
   NSPrintOperation* printOperation = [NSPrintOperation printOperationWithView:tmpView printInfo:printInfo];
   [NSPrintOperation setCurrentOperation:printOperation];
 
   NSPrintPanel* panel = [NSPrintPanel printPanel];
+  [panel setOptions:NSPrintPanelShowsPaperSize];
   PrintPanelAccessoryController* viewController =
     [[PrintPanelAccessoryController alloc] initWithSettings:aSettings];
   [panel addAccessoryController:viewController];
   [viewController release];
 
   // Show the dialog.
   nsCocoaUtils::PrepareForNativeAppModalDialog();
   int button = [panel runModal];