X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=tests%2Ftestprintfileoperation.c;h=bbd27c40bcabcce62f846787d34820e43a13ab53;hb=2c1839ae5f626e7ef5139b139e1ac9c8c6c04cf8;hp=e511eb3b69c885e80d6771d5b9db48f18947ba21;hpb=c459feaab114cecd04266050375badb7b58735c7;p=~andy%2Fgtk diff --git a/tests/testprintfileoperation.c b/tests/testprintfileoperation.c index e511eb3b6..bbd27c40b 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);