summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-private.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-04-24 17:00:44 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-04-24 17:00:44 +0000
commit2e9cc2f6931541fa5b0d2a3c0ce0670b91f53c03 (patch)
tree3546e5be3c8364728647e0433724127ff7884040 /gtk/gtkprintoperation-private.h
parent7261cff2d77aadb404bd8ddb0293e7f2cdc7e98b (diff)
downloadgtk+-2e9cc2f6931541fa5b0d2a3c0ce0670b91f53c03.tar.gz
Refactor the gtk_print_operation_run() code and add an _async version.
2006-04-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkprintoperation.c (gtk_print_operation_run_async): Refactor the gtk_print_operation_run() code and add an _async version. * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c (_gtk_print_operation_platform_backend_run_dialog_async) (gtk_print_run_page_setup_dialog_async): Variants of the run functions which don't call gtk_dialog_run(), but only show the dialog and return, and handle the response in a signal handler. * gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog_async) (_gtk_print_operation_platform_backend_run_dialog_async): Implement these by calling the sync versions.
Diffstat (limited to 'gtk/gtkprintoperation-private.h')
-rw-r--r--gtk/gtkprintoperation-private.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/gtkprintoperation-private.h b/gtk/gtkprintoperation-private.h
index 5109e9cce5..cf38582dcc 100644
--- a/gtk/gtkprintoperation-private.h
+++ b/gtk/gtkprintoperation-private.h
@@ -66,9 +66,15 @@ struct _GtkPrintOperationPrivate
};
GtkPrintOperationResult _gtk_print_operation_platform_backend_run_dialog (GtkPrintOperation *operation,
- GtkWindow *parent,
- gboolean *do_print,
- GError **error);
+ GtkWindow *parent,
+ gboolean *do_print,
+ GError **error);
+
+typedef void (* GtkPrintOperationPrintFunc) (GtkPrintOperation *op);
+
+void _gtk_print_operation_platform_backend_run_dialog_async (GtkPrintOperation *op,
+ GtkWindow *parent,
+ GtkPrintOperationPrintFunc print_cb);
void _gtk_print_operation_set_status (GtkPrintOperation *op,
GtkPrintStatus status,