1 --- gtk+-2.24.33/gtk/gtkprintoperation-unix.c.orig
2 +++ gtk+-2.24.33/gtk/gtkprintoperation-unix.c
4 cairo_surface_t *surface;
5 static cairo_user_data_key_t key;
7 - filename = g_build_filename (g_get_tmp_dir (), "previewXXXXXX.pdf", NULL);
8 + filename = g_build_filename (g_get_tmp_dir (), "previewXXXXXX.ps", NULL);
9 fd = g_mkstemp (filename);
13 h = gtk_paper_size_get_height (paper_size, GTK_UNIT_POINTS);
16 - surface = cairo_pdf_surface_create_for_stream (write_preview, GINT_TO_POINTER (fd), w, h);
17 + surface = cairo_ps_surface_create_for_stream (write_preview, GINT_TO_POINTER (fd), w, h);
19 cairo_surface_set_user_data (surface, &key, GINT_TO_POINTER (fd), close_preview);
22 paper_size = gtk_page_setup_get_paper_size (page_setup);
23 w = gtk_paper_size_get_width (paper_size, GTK_UNIT_POINTS);
24 h = gtk_paper_size_get_height (paper_size, GTK_UNIT_POINTS);
25 - cairo_pdf_surface_set_size (surface, w, h);
26 + cairo_ps_surface_set_size (surface, w, h);