From 79041f07cd6b9be3e091f86b1b3439108a5bce5b Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 8 Jun 2006 09:09:50 +0000 Subject: Update windows to build with new APIs and first cut at preview work. 2006-06-08 Alexander Larsson * 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. --- tests/print-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/print-editor.c') 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); } -- cgit v1.2.1