mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1669375 part 1: Don't expose "print only even/odd pages" option in our GTK Print Dialog, since we don't actually honor it. r=jwatt
This patch simply removes GTK_PRINT_CAPABILITY_PAGE_SET from our GtkPrintCapabilities struct. This flag is documented as controlling whether the gtk "Print dialog will offer printing even/odd pages", per https://developer.gnome.org/gtk3/stable/GtkPrintUnixDialog.html After this change, the "Only Print: All Sheets | Even Sheets | Odd Sheets" dropdown-menu in the GTK Print Dialog will be grayed out & disabled, which will accurately indicate that we don't support this feature. Differential Revision: https://phabricator.services.mozilla.com/D92527
This commit is contained in:
parent
56cc540be9
commit
2b7e596021
@ -175,9 +175,9 @@ nsPrintDialogWidgetGTK::nsPrintDialogWidgetGTK(nsPIDOMWindowOuter* aParent,
|
||||
gtk_print_unix_dialog_set_manual_capabilities(
|
||||
GTK_PRINT_UNIX_DIALOG(dialog),
|
||||
GtkPrintCapabilities(
|
||||
GTK_PRINT_CAPABILITY_PAGE_SET | GTK_PRINT_CAPABILITY_COPIES |
|
||||
GTK_PRINT_CAPABILITY_COLLATE | GTK_PRINT_CAPABILITY_REVERSE |
|
||||
GTK_PRINT_CAPABILITY_SCALE | GTK_PRINT_CAPABILITY_GENERATE_PDF));
|
||||
GTK_PRINT_CAPABILITY_COPIES | GTK_PRINT_CAPABILITY_COLLATE |
|
||||
GTK_PRINT_CAPABILITY_REVERSE | GTK_PRINT_CAPABILITY_SCALE |
|
||||
GTK_PRINT_CAPABILITY_GENERATE_PDF));
|
||||
|
||||
// The vast majority of magic numbers in this widget construction are padding.
|
||||
// e.g. for the set_border_width below, 12px matches that of just about every
|
||||
|
Loading…
Reference in New Issue
Block a user