diff options
author | Carl Worth <cworth@cworth.org> | 2005-05-06 13:32:53 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-05-06 13:32:53 +0000 |
commit | d7fe527e0f48f23821b7283d8d003fd1f6a3f899 (patch) | |
tree | f6c328f6ff82dba87187bc6cfa265a4982c1ddce /util | |
parent | a790a2ea79507cae9564006ac32e27a0fcca8d60 (diff) |
Eliminate the following deprecated functions from cairo's interface:
cairo_copy cairo_get_path cairo_get_path_flat cairo_matrix_create cairo_matrix_destroy cairo_matrix_copy cairo_matrix_get_affine cairo_surface_set_repeat cairo_surface_set_matrix cairo_surface_get_matrix cairo_surface_set_filter cairo_surface_get_filter
Also, eliminate all support for compiling against, or running with old, deprecated names for functions.
Deal with all of the removals.
Diffstat (limited to 'util')
-rwxr-xr-x | util/cairo-api-update | 48 |
1 files changed, 35 insertions, 13 deletions
diff --git a/util/cairo-api-update b/util/cairo-api-update index d2dfc0fa..76480848 100755 --- a/util/cairo-api-update +++ b/util/cairo-api-update @@ -15,20 +15,42 @@ cairo_api_update() { cp $file $backup sed -e ' - s/cairo_get_operator/cairo_current_operator/g - s/cairo_get_rgb_color/cairo_current_rgb_color/g - s/cairo_get_alpha/cairo_current_alpha/g - s/cairo_get_tolerance/cairo_current_tolerance/g - s/cairo_get_current_point/cairo_current_point/g - s/cairo_get_fill_rule/cairo_current_fill_rule/g - s/cairo_get_line_width/cairo_current_line_width/g - s/cairo_get_line_cap/cairo_current_line_cap/g - s/cairo_get_line_join/cairo_current_line_join/g - s/cairo_get_miter_limit/cairo_current_miter_limit/g - s/cairo_get_matrix/cairo_current_matrix/g - s/cairo_get_target_surface/cairo_current_target_surface/g - s/cairo_get_status_string/cairo_status_string/g + s/cairo_current_font_extents/cairo_font_extents/g + s/cairo_get_font_extents/cairo_font_extents/g + s/cairo_current_operator/cairo_get_operator/g + s/cairo_current_tolerance/cairo_get_tolerance/g + s/cairo_current_point/cairo_get_current_point/g + s/cairo_current_fill_rule/cairo_get_fill_rule/g + s/cairo_current_line_width/cairo_get_line_width/g + s/cairo_current_line_cap/cairo_get_line_cap/g + s/cairo_current_line_join/cairo_get_line_join/g + s/cairo_current_miter_limit/cairo_get_miter_limit/g + s/cairo_current_matrix/cairo_get_matrix/g + s/cairo_current_target_surface/cairo_get_target_surface/g s/cairo_get_status/cairo_status/g + s/cairo_get_status_string/cairo_status_string/g + s/cairo_concat_matrix/cairo_transform/g + s/cairo_scale_font/cairo_set_font_size/g + s/cairo_select_font/cairo_select_font_face/g + s/cairo_transform_font/cairo_set_font_matrix/g + s/cairo_transform_point/cairo_user_to_device/g + s/cairo_transform_distance/cairo_user_to_device_distance/g + s/cairo_inverse_transform_point/cairo_device_to_user/g + s/cairo_inverse_transform_distance/cairo_device_to_user_distance/g + s/cairo_init_clip/cairo_reset_clip/g + s/cairo_surface_create_for_image/cairo_image_surface_create_for_data/g + s/cairo_default_matrix/cairo_identity_matrix/g + s/cairo_matrix_set_affine/cairo_matrix_init/g + s/cairo_matrix_set_identity/cairo_matrix_init_identity/g + s/cairo_pattern_add_color_stop/cairo_pattern_add_color_stop_rgba/g + s/cairo_set_rgb_color/cairo_set_source_rgb/g + s/cairo_set_pattern/cairo_set_source/g + s/CAIRO_OPERATOR_SRC/CAIRO_OPERATOR_SOURCE/g + s/CAIRO_OPERATOR_DST/CAIRO_OPERATOR_DEST/g + s/CAIRO_OPERATOR_OVER_REVERSE/CAIRO_OPERATOR_DEST_OVER/g + s/CAIRO_OPERATOR_IN_REVERSE/CAIRO_OPERATOR_DEST_IN/g + s/CAIRO_OPERATOR_OUT_REVERSE/CAIRO_OPERATOR_DEST_OUT/g + s/CAIRO_OPERATOR_ATOP_REVERSE/CAIRO_OPERATOR_DEST_ATOP/g ' $backup > $file } |