summaryrefslogtreecommitdiff
path: root/tests/print-editor.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2006-05-31 14:06:02 +0000
committerAlexander Larsson <alexl@src.gnome.org>2006-05-31 14:06:02 +0000
commit50d17b73b68420097160d62028ceb27b6b0b1768 (patch)
tree0e3251ea39ea1bef6f94d0206e6183ca23ae1cad /tests/print-editor.c
parentdf6580e5ffcce5cea9008140f9a86836ab2bc79a (diff)
downloadgtk+-50d17b73b68420097160d62028ceb27b6b0b1768.tar.gz
Further updates from the GtkPrintContext functions rename.
2006-05-31 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: * demos/gtk-demo/printing.c: * tests/print-editor.c: * tests/testnouiprint.c: * tests/testprint.c: * tests/testprintfileoperation.c: Further updates from the GtkPrintContext functions rename. * modules/printbackends/cups/gtkcupsutils.c: Always set requesting-user-name when doing cups requests.
Diffstat (limited to 'tests/print-editor.c')
-rw-r--r--tests/print-editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/print-editor.c b/tests/print-editor.c
index eff83c583b..c49ede459b 100644
--- a/tests/print-editor.c
+++ b/tests/print-editor.c
@@ -265,7 +265,7 @@ begin_print (GtkPrintOperation *operation,
width = gtk_print_context_get_width (context);
height = gtk_print_context_get_height (context);
- print_data->layout = gtk_print_context_create_layout (context);
+ print_data->layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string (print_data->font);
pango_layout_set_font_description (print_data->layout, desc);
@@ -331,7 +331,7 @@ draw_page (GtkPrintOperation *operation,
else
end = GPOINTER_TO_INT (pagebreak->data);
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
cairo_set_source_rgb (cr, 0, 0, 0);