summaryrefslogtreecommitdiff
path: root/tests/testprintfileoperation.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/testprintfileoperation.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/testprintfileoperation.c')
-rw-r--r--tests/testprintfileoperation.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testprintfileoperation.c b/tests/testprintfileoperation.c
index e511eb3b69..bbd27c40bc 100644
--- a/tests/testprintfileoperation.c
+++ b/tests/testprintfileoperation.c
@@ -86,7 +86,7 @@ test_print_file_operation_draw_page (GtkPrintOperation *operation,
PangoFontDescription *desc;
char *page_str;
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
width = gtk_print_context_get_width (context);
cairo_rectangle (cr, 0, 0, width, HEADER_HEIGHT);
@@ -98,7 +98,7 @@ test_print_file_operation_draw_page (GtkPrintOperation *operation,
cairo_set_line_width (cr, 1);
cairo_stroke (cr);
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string ("sans 14");
pango_layout_set_font_description (layout, desc);
@@ -124,7 +124,7 @@ test_print_file_operation_draw_page (GtkPrintOperation *operation,
g_object_unref (layout);
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
desc = pango_font_description_from_string ("mono");
pango_font_description_set_size (desc, op->font_size * PANGO_SCALE);