]> Pileus Git - ~andy/gtk/blobdiff - tests/testprintfileoperation.c
stylecontext: Do invalidation on first resize container
[~andy/gtk] / tests / testprintfileoperation.c
index e511eb3b69c885e80d6771d5b9db48f18947ba21..bbd27c40bcabcce62f846787d34820e43a13ab53 100644 (file)
@@ -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);