summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-private.h
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-private.h
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-private.h')
-rw-r--r--gtk/gtkprintoperation-private.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkprintoperation-private.h b/gtk/gtkprintoperation-private.h
index d1c6a7f812..99237d5806 100644
--- a/gtk/gtkprintoperation-private.h
+++ b/gtk/gtkprintoperation-private.h
@@ -39,9 +39,11 @@ struct _GtkPrintOperationPrivate
guint use_full_page : 1;
guint show_dialog : 1;
guint track_print_status : 1;
+ guint show_progress : 1;
guint cancelled : 1;
guint print_pages_idle_id;
+ guint show_progress_timeout_id;
/* Data for the print job: */
cairo_surface_t *surface;
@@ -68,7 +70,8 @@ struct _GtkPrintOperationPrivate
void (*end_page) (GtkPrintOperation *operation,
GtkPrintContext *print_context);
void (*end_run) (GtkPrintOperation *operation,
- gboolean wait);
+ gboolean wait,
+ gboolean cancelled);
};
GtkPrintOperationResult _gtk_print_operation_platform_backend_run_dialog (GtkPrintOperation *operation,
@@ -77,6 +80,7 @@ GtkPrintOperationResult _gtk_print_operation_platform_backend_run_dialog (GtkPri
GError **error);
typedef void (* GtkPrintOperationPrintFunc) (GtkPrintOperation *op,
+ GtkWindow *parent,
gboolean wait);
void _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation *op,