From 9e975757a2820303d67e8497ab6cef9368237eb5 Mon Sep 17 00:00:00 2001 From: Vladimir Vukicevic Date: Tue, 11 Sep 2007 13:30:35 -0700 Subject: Export cairo_surface_{copy,show}_page This patch adds cairo_surface_copy_page and cairo_surface_show_page as public methods, leaving the previous cairo_show_page variants as shorthands. copy_page/show_page are specific to the surface, not to the context, so they need to be surface methods. --- boilerplate/cairo-boilerplate-test-surfaces.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'boilerplate/cairo-boilerplate-test-surfaces.c') diff --git a/boilerplate/cairo-boilerplate-test-surfaces.c b/boilerplate/cairo-boilerplate-test-surfaces.c index 93ca5e7fc..667ed5b5a 100644 --- a/boilerplate/cairo-boilerplate-test-surfaces.c +++ b/boilerplate/cairo-boilerplate-test-surfaces.c @@ -121,10 +121,7 @@ _cairo_boilerplate_test_paginated_surface_write_to_png (cairo_surface_t *surface cairo_status_t status; /* show page first. the automatic show_page is too late for us */ - /* XXX use cairo_surface_show_page() when that's added */ - cairo_t *cr = cairo_create (surface); - cairo_show_page (cr); - cairo_destroy (cr); + cairo_surface_show_page (surface); tpc = cairo_surface_get_user_data (surface, &test_paginated_closure_key); -- cgit v1.2.1