summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorDominic Lachowicz <domlachowicz@gmail.com>2008-02-22 22:38:47 +0000
committerDom Lachowicz <doml@src.gnome.org>2008-02-22 22:38:47 +0000
commit4c399695f9f58d2395384b4058fa97b98069858c (patch)
tree45c79dec59229bd22e7a55e3b154126e4cea401d /demos
parent6db14175635e681b61982d77fb852a5f7023f562 (diff)
downloadgtk+-4c399695f9f58d2395384b4058fa97b98069858c.tar.gz
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
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/printing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/gtk-demo/printing.c b/demos/gtk-demo/printing.c
index 33b4b445f8..be1e066ca8 100644
--- a/demos/gtk-demo/printing.c
+++ b/demos/gtk-demo/printing.c
@@ -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);