diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-04-24 17:00:44 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-24 17:00:44 +0000 |
commit | 2e9cc2f6931541fa5b0d2a3c0ce0670b91f53c03 (patch) | |
tree | 3546e5be3c8364728647e0433724127ff7884040 /gtk/gtkprintoperation-private.h | |
parent | 7261cff2d77aadb404bd8ddb0293e7f2cdc7e98b (diff) | |
download | gtk+-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.h | 12 |
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, |