summaryrefslogtreecommitdiff
path: root/tests
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
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')
-rw-r--r--tests/print-editor.c4
-rw-r--r--tests/testnouiprint.c4
-rw-r--r--tests/testprint.c4
-rw-r--r--tests/testprintfileoperation.c6
4 files changed, 9 insertions, 9 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);
diff --git a/tests/testnouiprint.c b/tests/testnouiprint.c
index c640063b20..cf73fd03ed 100644
--- a/tests/testnouiprint.c
+++ b/tests/testnouiprint.c
@@ -31,7 +31,7 @@ draw_page (GtkPrintOperation *operation,
PangoLayout *layout;
PangoFontDescription *desc;
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
/* Draw a red rectangle, as wide as the paper (inside the margins) */
cairo_set_source_rgb (cr, 1.0, 0, 0);
@@ -54,7 +54,7 @@ draw_page (GtkPrintOperation *operation,
/* Draw some text */
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
pango_layout_set_text (layout, "Hello World! Printing is easy", -1);
desc = pango_font_description_from_string ("sans 28");
pango_layout_set_font_description (layout, desc);
diff --git a/tests/testprint.c b/tests/testprint.c
index 4326a8062d..5ff3489e71 100644
--- a/tests/testprint.c
+++ b/tests/testprint.c
@@ -51,7 +51,7 @@ draw_page (GtkPrintOperation *operation,
PangoLayout *layout;
PangoFontDescription *desc;
- cr = gtk_print_context_get_cairo (context);
+ cr = gtk_print_context_get_cairo_context (context);
/* Draw a red rectangle, as wide as the paper (inside the margins) */
cairo_set_source_rgb (cr, 1.0, 0, 0);
@@ -74,7 +74,7 @@ draw_page (GtkPrintOperation *operation,
/* Draw some text */
- layout = gtk_print_context_create_layout (context);
+ layout = gtk_print_context_create_pango_layout (context);
pango_layout_set_text (layout, "Hello World! Printing is easy", -1);
desc = pango_font_description_from_string ("sans 28");
pango_layout_set_font_description (layout, desc);
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);