summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-win32.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-05-23 16:30:45 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-05-23 16:30:45 +0000
commit57a052b0b06704b2d91041c8ffe2c9ceb365acd7 (patch)
tree60db6d0368636b284c2e74d08712de4890ff0843 /gtk/gtkprintoperation-win32.c
parentf2a6a098bb24c55997d20782a1836a4bd9e502bd (diff)
downloadgtk+-57a052b0b06704b2d91041c8ffe2c9ceb365acd7.tar.gz
Add a boolean show-progress property, and show a progress dialog if it is
2006-05-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation.h: * gtk/gtkprintoperation.c: Add a boolean show-progress property, and show a progress dialog if it is set to TRUE. * gtk/gtkprintoperation.c (pdf_end_run): * gtk/gtkprintoperation-win32.c (win32_end_run): * gtk/gtkprintoperation-unix.c (unix_end_run): * gtk/gtkprintoperation-private.h: Add a cancelled parameter to end_run, and call it even if the print operation was cancelled.
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r--gtk/gtkprintoperation-win32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c
index 2ee127da5e..97e1aaa605 100644
--- a/gtk/gtkprintoperation-win32.c
+++ b/gtk/gtkprintoperation-win32.c
@@ -471,7 +471,8 @@ win32_poll_status_timeout (GtkPrintOperation *op)
static void
win32_end_run (GtkPrintOperation *op,
- gboolean wait)
+ gboolean wait,
+ gboolean cancelled)
{
GtkPrintOperationWin32 *op_win32 = op->priv->platform_data;
LPDEVNAMES devnames;
@@ -1616,7 +1617,7 @@ _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation
_gtk_print_operation_platform_backend_run_dialog (op, parent, &do_print, NULL);
if (do_print)
- print_cb (op, FALSE);
+ print_cb (op, parent, FALSE);
else
_gtk_print_operation_set_status (op, GTK_PRINT_STATUS_FINISHED_ABORTED, NULL);
}