summaryrefslogtreecommitdiff
path: root/demos
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 /demos
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 'demos')
-rw-r--r--demos/gtk-demo/printing.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/gtk-demo/printing.c b/demos/gtk-demo/printing.c
index 4ddeeaa148..63d5142b5d 100644
--- a/demos/gtk-demo/printing.c
+++ b/demos/gtk-demo/printing.c
@@ -66,7 +66,7 @@ draw_page (GtkPrintOperation *operation,
PangoFontDescription *desc;
gchar *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);
@@ -78,7 +78,7 @@ 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);
@@ -104,7 +104,7 @@ 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, data->font_size * PANGO_SCALE);