Gtk.PageSetupUnixDialog¶
class — extends Dialog, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager
Presents a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix.
<picture> <source srcset="pagesetupdialog-dark.png" media="(prefers-color-scheme: dark)"> <img alt="An example GtkPageSetupUnixDialog" src="pagesetupdialog.png"> </picture>
It can be used very much like any other GTK dialog, at the
cost of the portability offered by the high-level printing
API in PrintOperation.
CSS nodes¶
GtkPageSetupUnixDialog has a single CSS node with the name window and
style class .pagesetup.
Constructors¶
new¶
Creates a new page setup dialog.
Parameters:
title— the title of the dialogparent— transient parent of the dialog
Methods¶
get_page_setup¶
Gets the currently selected page setup from the dialog.
get_print_settings¶
Gets the current print settings from the dialog.
set_page_setup¶
Sets the GtkPageSetup from which the page setup
dialog takes its values.
Parameters:
page_setup— aGtkPageSetup
set_print_settings¶
Sets the GtkPrintSettings from which the page setup dialog
takes its values.
Parameters:
print_settings— aGtkPrintSettings