diff options
author | Alexander Larsson <alexl@redhat.com> | 2006-06-08 09:09:50 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2006-06-08 09:09:50 +0000 |
commit | 79041f07cd6b9be3e091f86b1b3439108a5bce5b (patch) | |
tree | 6227513e27a3b1f7314e0c659eb684e0e05188d4 /tests/print-editor.c | |
parent | 37400c5ac5e7d12c72d87fa2e989a4ca9f531284 (diff) | |
download | gtk+-79041f07cd6b9be3e091f86b1b3439108a5bce5b.tar.gz |
Update windows to build with new APIs and first cut at preview work.
2006-06-08 Alexander Larsson <alexl@redhat.com>
* gtk/gtkprintoperation-win32.c:
Update windows to build with new APIs and first cut
at preview work.
* gtk/gtkprintoperation-private.h:
* gtk/gtkprintoperation-unix.c:
* gtk/gtkprintoperation.c
Various updates needed when making the preview work on win32.
* tests/print-editor.c:
Print, don't preview.
Diffstat (limited to 'tests/print-editor.c')
-rw-r--r-- | tests/print-editor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/print-editor.c b/tests/print-editor.c index e8d6a0e5fd..ee839c1d53 100644 --- a/tests/print-editor.c +++ b/tests/print-editor.c @@ -497,7 +497,7 @@ preview_got_page_size (GtkPrintOperationPreview *preview, dpi_x = pop->area->allocation.width/w; dpi_y = pop->area->allocation.height/h; - + if (fabs (dpi_x - pop->dpi_x) > 0.001 || fabs (dpi_y - pop->dpi_y) > 0.001) { @@ -683,7 +683,7 @@ do_print (GtkAction *action) #if 0 gtk_print_operation_set_allow_async (print, TRUE); #endif - gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PREVIEW, GTK_WINDOW (main_window), NULL); + gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, GTK_WINDOW (main_window), NULL); g_object_unref (print); } |