Next: , Previous: GtkPrintJob, Up: Top


116 GtkPrintUnixDialog

A print dialog

116.1 Overview

GtkPrintUnixDialog implements a print dialog for platforms which don't 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 gtk-print-unix-dialog-get-selected-printer to obtain a <gtk-printer> object and use it to construct a <gtk-print-job> using gtk-print-job-new.

<gtk-print-unix-dialog> uses the following response values:

GTK_RESPONSE_APPLY

GTK_RESPONSE_CANCEL

for the "Print" button

for the "Preview" button

for the "Cancel" button

Printing support was added in GTK+ 2.10.

116.2 Usage