PageSetupUnixDialog

gtk.page_setup_unix_dialog.PageSetupUnixDialog implements a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix.

An example GtkPageSetupUnixDialog

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 gtk.print_operation.PrintOperation.

CSS nodes

gtk.page_setup_unix_dialog.PageSetupUnixDialog has a single CSS node with the name window and style class .pagesetup.

Constructors

this
this(string title, gtk.window.Window parent)

Creates a new page setup dialog.

Members

Functions

getPageSetup
gtk.page_setup.PageSetup getPageSetup()

Gets the currently selected page setup from the dialog.

getPrintSettings
gtk.print_settings.PrintSettings getPrintSettings()

Gets the current print settings from the dialog.

setPageSetup
void setPageSetup(gtk.page_setup.PageSetup pageSetup)

Sets the gtk.page_setup.PageSetup from which the page setup dialog takes its values.

setPrintSettings
void setPrintSettings(gtk.print_settings.PrintSettings printSettings)

Sets the gtk.print_settings.PrintSettings from which the page setup dialog takes its values.

Inherited Members

From Dialog

addActionWidget
void addActionWidget(gtk.widget.Widget child, int responseId)

Adds an activatable widget to the action area of a gtk.dialog.Dialog.

addButton
gtk.widget.Widget addButton(string buttonText, int responseId)

Adds a button with the given text.

getContentArea
gtk.box.Box getContentArea()

Returns the content area of dialog.

getHeaderBar
gtk.header_bar.HeaderBar getHeaderBar()

Returns the header bar of dialog.

getResponseForWidget
int getResponseForWidget(gtk.widget.Widget widget)

Gets the response id of a widget in the action area of a dialog.

getWidgetForResponse
gtk.widget.Widget getWidgetForResponse(int responseId)

Gets the widget button that uses the given response ID in the action area of a dialog.

response
void response(int responseId)

Emits the ::response signal with the given response ID.

setDefaultResponse
void setDefaultResponse(int responseId)

Sets the default widget for the dialog based on the response ID.

setResponseSensitive
void setResponseSensitive(int responseId, bool setting)

A convenient way to sensitize/desensitize dialog buttons.

connectClose
ulong connectClose(T callback, Flag!"After" after)

Connect to Close signal.

connectResponse
ulong connectResponse(T callback, Flag!"After" after)

Connect to Response signal.