Package: gtk

Class gtk:print-unix-dialog

Superclasses

gtk:dialog, gtk:window, gtk:bin, gtk:container, gtk:widget, gtk:buildable, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

current-page
The current-page property of type :int (Read / Write)
The current page in the document.
Allowed values: >= -1
Default value: -1
embed-page-setup
The embed-page-setup property of type :boolean (Read / Write)
True if page setup combos are embedded in the print dialog.
Default value: false
has-selection
The has-selection property of type :boolean (Read / Write)
Whether the application has a selection.
Default value: false
manual-capabilities
The manual-capabilities property of type gtk:print-capabilities (Read / Write)
Capabilities the application can handle.
page-setup
The page-setup property of type gtk:page-setup (Read / Write)
The page setup to use.
print-settings
The print-settings property of type gtk:print-settings (Read / Write)
The print settings used for initializing the dialog.
selected-printer
The selected-printer property of type gtk:printer (Read)
The printer which is selected.
support-selection
The support-selection property of type :boolean (Read / Write)
Whether the dialog supports selection.
Default value: false

Details

The gtk:print-unix-dialog widget implements a print dialog for platforms which do not provide a native print dialog, like Unix. It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API.

Figure: GtkPrintUnixDialog

In order to print something with the gtk:print-unix-dialog widget, you need to use the gtk:print-unix-dialog-selected-printer function to obtain a gtk:printer object and use it to construct a gtk:print-job object using the gtk:print-job-new function.

The gtk:print-unix-dialog widget uses the following response values:
:ok
For the "Print" button.
:apply
For the "Preview" button.
:cancel
For the "Cancel" button.

GtkPrintUnixDialog as GtkBuildable

The gtk:print-unix-dialog implementation of the gtk:buildable interface exposes its notebook internal children with the name "notebook".

Example: A gtk:print-unix-dialog UI definition fragment.
   <object class="GtkPrintUnixDialog" id="dialog1">
     <child internal-child="notebook">
       <object class="GtkNotebook" id="notebook">
         <child>
           <object class="GtkLabel" id="tabcontent">
           <property name="label">Content on notebook tab</property>
           </object>
         </child>
         <child type="tab">
           <object class="GtkLabel" id="tablabel">
             <property name="label">Tab label</property>
           </object>
           <packing>
             <property name="tab_expand">False</property>
             <property name="tab_fill">False</property>
           </packing>
         </child>
       </object>
     </child>
   </object>    
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

gtk:dialog-use-header-bar
gtk:widget-app-paintable
gtk:widget-can-default
gtk:widget-can-focus
gtk:widget-composite-child
gtk:widget-double-buffered
gtk:widget-events
gtk:widget-expand
gtk:widget-focus-on-click
gtk:widget-halign
gtk:widget-has-default
gtk:widget-has-focus
gtk:widget-has-tooltip
gtk:widget-height-request
gtk:widget-hexpand
gtk:widget-hexpand-set
gtk:widget-is-focus
gtk:widget-margin
gtk:widget-margin-bottom
gtk:widget-margin-end
gtk:widget-margin-left
gtk:widget-margin-right
gtk:widget-margin-start
gtk:widget-margin-top
gtk:widget-name
gtk:widget-no-show-all
gtk:widget-opacity
gtk:widget-parent
gtk:widget-receives-default
gtk:widget-scale-factor
gtk:widget-sensitive
gtk:widget-style
gtk:widget-tooltip-markup
gtk:widget-tooltip-text
gtk:widget-valign
gtk:widget-vexpand
gtk:widget-vexpand-set
gtk:widget-visible
gtk:widget-width-request
gtk:widget-window
gtk:window-accept-focus
gtk:window-application
gtk:window-attached-to
gtk:window-decorated
gtk:window-default-height
gtk:window-default-width
gtk:window-deletable
gtk:window-destroy-with-parent
gtk:window-focus-on-map
gtk:window-focus-visible
gtk:window-gravity
gtk:window-has-resize-grip
gtk:window-has-toplevel-focus
gtk:window-hide-titlebar-when-maximized
gtk:window-icon
gtk:window-icon-name
gtk:window-is-active
gtk:window-mnemonics-visible
gtk:window-modal
gtk:window-opacity
gtk:window-resizable
gtk:window-resize-grip-visible
gtk:window-role
gtk:window-screen
gtk:window-skip-pager-hint
gtk:window-skip-taskbar-hint
gtk:window-startup-id
gtk:window-title
gtk:window-transient-for
gtk:window-type
gtk:window-type-hint
gtk:window-urgency-hint
gtk:window-window-position
gtk:container-border-width
gtk:container-child
gtk:container-resize-mode
g:object-has-reference
g:object-pointer

See also

#2023-2-8