Package: gtk

Class gtk-print-unix-dialog

Superclasses

gtk-dialog, gtk-window, gtk-bin, gtk-container, gtk-widget, gtk-buildable, g-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 gtk-print-unix-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

gtk-print-unix-dialog 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.



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

gtk-print-unix-dialog 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>    
 

Slot Access Functions

Inherited Slot Access Functions

gtk-container-border-width
gtk-container-child
gtk-container-resize-mode
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-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
g-object-has-reference
g-object-pointer
g-object-signal-handlers
2020-4-10