diff options
author | Alexander Larsson <alexl@redhat.com> | 2006-05-15 16:22:38 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2006-05-15 16:22:38 +0000 |
commit | 3f529199e5a2117333ae10cf2d50dd91eb286207 (patch) | |
tree | fa1ccceec4371bfabb412feb7c85acaecdefdd0b /gtk/gtkprintoperation-win32.c | |
parent | 9dc49c456352a29601f4cc4d675a22dbfd22668f (diff) | |
download | gtk+-3f529199e5a2117333ae10cf2d50dd91eb286207.tar.gz |
Added gtk_print_job_set/get_track_print_status
2006-05-15 Alexander Larsson <alexl@redhat.com>
* gtk/gtkprintjob.[ch]:
Added gtk_print_job_set/get_track_print_status
* gtk/gtkprintoperation-private.h:
* gtk/gtkprintoperation.[ch]:
Add gtk_print_operation_set_track_print_status.
* gtk/gtkprintoperation-unix.c:
Implement track_print_status on unix
* gtk/gtkprintoperation-win32.c:
Implement track_print_status on win32
* gtk/gtk.symbols:
Added symbols
* modules/printbackends/cups/gtkprintbackendcups.c:
Implement track_print_status for cups
* tests/print-editor.c:
Test track_print_status.
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r-- | gtk/gtkprintoperation-win32.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index 6b6ad5b627..8383434089 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -471,11 +471,15 @@ win32_end_run (GtkPrintOperation *op) HANDLE printerHandle = 0; EndDoc (op_win32->hdc); - devnames = GlobalLock (op_win32->devnames); - if (!OpenPrinterW (((gunichar2 *)devnames) + devnames->wDeviceOffset, - &printerHandle, NULL)) - printerHandle = 0; - GlobalUnlock (op_win32->devnames); + + if (op->track_print_status) + { + devnames = GlobalLock (op_win32->devnames); + if (!OpenPrinterW (((gunichar2 *)devnames) + devnames->wDeviceOffset, + &printerHandle, NULL)) + printerHandle = 0; + GlobalUnlock (op_win32->devnames); + } GlobalFree(op_win32->devmode); GlobalFree(op_win32->devnames); |