X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftestprint.c;h=ca0fee560674f833c3a070ff9db558fb8ca33e3d;hb=57fa43d44b1b35b975c9b360a1961752bd0c7d0f;hp=2394d12b18517cf3618eb0c9bca0acd64483552b;hpb=9bea38595fcd9b4e9f55de3dcd5199dab930e713;p=~andy%2Fgtk diff --git a/tests/testprint.c b/tests/testprint.c index 2394d12b1..ca0fee560 100644 --- a/tests/testprint.c +++ b/tests/testprint.c @@ -18,11 +18,10 @@ * Boston, MA 02111-1307, USA. */ -#include +#include "config.h" #include #include #include -#include #include "testprintfileoperation.h" static void @@ -62,7 +61,7 @@ draw_page (GtkPrintOperation *operation, /* Draw some lines */ cairo_move_to (cr, 20, 10); cairo_line_to (cr, 40, 20); - cairo_arc (cr, 60, 60, 20, 0, M_PI); + cairo_arc (cr, 60, 60, 20, 0, G_PI); cairo_line_to (cr, 80, 20); cairo_set_source_rgb (cr, 0, 0, 0); @@ -108,7 +107,7 @@ main (int argc, char **argv) print = gtk_print_operation_new (); gtk_print_operation_set_n_pages (print, 2); gtk_print_operation_set_unit (print, GTK_UNIT_MM); - gtk_print_operation_set_pdf_target (print, "test.pdf"); + gtk_print_operation_set_export_filename (print, "test.pdf"); g_signal_connect (print, "draw_page", G_CALLBACK (draw_page), NULL); g_signal_connect (print, "request_page_setup", G_CALLBACK (request_page_setup), NULL); res = gtk_print_operation_run (print, GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL); @@ -116,7 +115,7 @@ main (int argc, char **argv) /* Test subclassing of GtkPrintOperation */ print_file = test_print_file_operation_new ("testprint.c"); test_print_file_operation_set_font_size (print_file, 12.0); - gtk_print_operation_set_pdf_target (GTK_PRINT_OPERATION (print_file), "test2.pdf"); + gtk_print_operation_set_export_filename (GTK_PRINT_OPERATION (print_file), "test2.pdf"); res = gtk_print_operation_run (GTK_PRINT_OPERATION (print_file), GTK_PRINT_OPERATION_ACTION_EXPORT, NULL, NULL); return 0;