Basics
Guides
API Reference
Basics
Guides
API Reference
[468:14] static extends: object
Generated metadata helpers for PrintUnixDialog class surfaces.
properties ()
Returns property metadata for
PrintUnixDialog.
A list.[38:7] extends: object
A print dialog for platforms which don’t provide a native print dialog, like
Unix.
GtkPrintUnixDialog, you need to use
[method@Gtk.PrintUnixDialog.get_selected_printer] to obtain a
[class@Gtk.Printer] object and use it to construct a [class@Gtk.PrintJob]
using [ctor@Gtk.PrintJob.new]. GtkPrintUnixDialog uses the following
response values: - %GTK_RESPONSE_OK: for the “Print” button -
%GTK_RESPONSE_APPLY: for the “Preview” button - %GTK_RESPONSE_CANCEL: for the
“Cancel” button # GtkPrintUnixDialog as GtkBuildable The GtkPrintUnixDialog
implementation of the GtkBuildable interface exposes its @notebook internal
children with the name “notebook”. An example of a GtkPrintUnixDialog UI
definition fragment: xml <object class="GtkPrintUnixDialog" id="dialog1"> <child internal-child="notebook"> <object class="GtkNotebook" id="notebook"> <child> <object type="GtkNotebookPage"> <property name="tab_expand">False</property> <property name="tab_fill">False</property> <property name="tab"> <object class="GtkLabel" id="tablabel"> <property name="label">Tab label</property> </object> </property> <property name="child"> <object class="GtkLabel" id="tabcontent"> <property name="label">Content on notebook tab</property> </object> </property> </object> </child> </object> </child> </object> # CSS nodes
GtkPrintUnixDialog has a single CSS node with name window. The style
classes dialog and print are added.
PrintUnixDialog (title = null, parent = null)
Creates a new
GtkPrintUnixDialog.
title is Title of the dialog.parent is Transient parent of the dialog.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asDialog ()
Wraps this handle as
Dialog.
A Dialog object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.asNative ()
Wraps this handle as
Native.
A Native object.asRoot ()
Wraps this handle as
Root.
A Root object.asShortcutManager ()
Wraps this handle as
ShortcutManager.
A ShortcutManager object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setCurrentpage (int Value)
The current page in the document.
Value is the new property value.None.setEmbedpagesetup (bool Value)
%TRUE if the page setup controls are embedded.
Value is the new property value.None.setHasselection (bool Value)
Whether the application has a selection.
Value is the new property value.None.setManualcapabilities (string Value)
Capabilities the application can handle.
Value is the new property value.None.setPagesetup (object Value)
The
GtkPageSetupobject to use.
Value is the new property value.None.setPrintsettings (object Value)
The
GtkPrintSettingsobject used for this dialog.
Value is the new property value.None.setSupportselection (bool Value)
Whether the dialog supports selection.
Value is the new property value.None.add_custom_tab (object child, object tab_label)
Adds a custom tab to the print dialog.
child is the widget to put in the custom tab.tab_label is the widget to use as tab label.None.get_current_page ()
Gets the current page of the
GtkPrintUnixDialog.
get_embed_page_setup ()
Gets whether to embed the page setup.
get_has_selection ()
Gets whether there is a selection.
get_manual_capabilities ()
Gets the capabilities that have been set on this
GtkPrintUnixDialog.
get_page_setup ()
Gets the page setup that is used by the
GtkPrintUnixDialog.
get_page_setup_set ()
Gets whether a page setup was set by the user.
get_selected_printer ()
Gets the currently selected printer.
get_settings ()
Gets a new
GtkPrintSettingsobject that represents the current values in the print dialog. Note that this creates a new object, and you need to unref it if don’t want to keep it.
get_support_selection ()
Gets whether the print dialog allows user to print a selection.
set_current_page (int current_page)
Sets the current page number. If @current_page is not -1, this enables the current page choice for the range of pages to print.
current_page is the current page number..None.set_embed_page_setup (bool embed)
Embed page size combo box and orientation combo box into page setup page.
embed is embed page setup selection.None.set_has_selection (bool has_selection)
Sets whether a selection exists.
has_selection is %TRUE indicates that a selection exists.None.set_manual_capabilities (string capabilities)
This lets you specify the printing capabilities your application supports. For instance, if you can handle scaling the output then you pass %GTK_PRINT_CAPABILITY_SCALE. If you don’t pass that, then the dialog will only let you select the scale if the printing system automatically handles scaling.
capabilities is the printing capabilities of your application.None.set_page_setup (object page_setup)
Sets the page setup of the
GtkPrintUnixDialog.
page_setup is a GtkPageSetup.None.set_settings (object settings)
Sets the
GtkPrintSettingsfor theGtkPrintUnixDialog. Typically, this is used to restore saved print settings from a previous print operation before the print dialog is shown.
settings is a GtkPrintSettings.None.set_support_selection (bool support_selection)
Sets whether the print dialog allows user to print a selection.
support_selection is %TRUE to allow print selection.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.