diff options
author | Alexander Larsson <alexl@redhat.com> | 2006-06-07 15:09:03 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2006-06-07 15:09:03 +0000 |
commit | 9bea38595fcd9b4e9f55de3dcd5199dab930e713 (patch) | |
tree | 1c5d2d561965a275c566abc8f1a083cc5cf46976 /tests/testnouiprint.c | |
parent | 36f7ed300ad786fc6ba88e9c7a7d771c689af06e (diff) | |
download | gtk+-9bea38595fcd9b4e9f55de3dcd5199dab930e713.tar.gz |
Clean up APIs: Make async a setting instead of separate calls. Combine
2006-06-07 Alexander Larsson <alexl@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkprintoperation-private.h:
* gtk/gtkprintoperation-unix.c:
* gtk/gtkprintoperation.[ch]:
Clean up APIs:
Make async a setting instead of separate calls.
Combine settings like show_dialog, show_preview and pdf_target into
an action enum that you pass to gtk_print_dialog_run().
* tests/print-editor.c:
* tests/testnouiprint.c:
* tests/testprint.c:
* demos/gtk-demo/printing.c:
Update to new APIs
Diffstat (limited to 'tests/testnouiprint.c')
-rw-r--r-- | tests/testnouiprint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/testnouiprint.c b/tests/testnouiprint.c index cf73fd03ed..585c5ddbec 100644 --- a/tests/testnouiprint.c +++ b/tests/testnouiprint.c @@ -99,9 +99,8 @@ main (int argc, char **argv) gtk_print_operation_set_print_settings (print, settings); gtk_print_operation_set_n_pages (print, 1); gtk_print_operation_set_unit (print, GTK_UNIT_MM); - gtk_print_operation_set_show_dialog (print, FALSE); g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL); - res = gtk_print_operation_run (print, NULL, NULL); + res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT, NULL, NULL); return 0; } |