gtk-demo printing gives wrong results on win32 because it doesn't set the

2008-02-22  Dominic Lachowicz  <domlachowicz@gmail.com>

        * demos/gtk-demo/printing.c (do_printing): gtk-demo printing 
gives
        wrong results on win32 because it doesn't set the printing 
units,
        which affect the transformation of the cairo context
        (#347125, Erik van Pienbroek)


svn path=/trunk/; revision=19635
This commit is contained in:
Dominic Lachowicz
2008-02-22 22:38:47 +00:00
committed by Dom Lachowicz
parent 6db1417563
commit 4c399695f9
2 changed files with 10 additions and 0 deletions

View File

@ -161,6 +161,9 @@ do_printing (GtkWidget *do_widget)
g_signal_connect (G_OBJECT (operation), "end-print",
G_CALLBACK (end_print), data);
gtk_print_operation_set_use_full_page (operation, FALSE);
gtk_print_operation_set_unit (operation, GTK_UNIT_POINTS);
gtk_print_operation_run (operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, GTK_WINDOW (do_widget), &error);
g_object_unref (operation);