• Paul Eggert's avatar
    Avoid functions deprecated in librsvg 2.45.1 · 40cd6278
    Paul Eggert authored
    * src/image.c (init_svg_functions) [WINDOWSNT]:
    Load the pre-2.32 or 2.32 functions,
    depending on LIBRSVG_CHECK_VERSION.
    (svg_load_image): In librsvg 2.32 or later, use
    g_memory_input_stream_new_from_data, g_file_new_for_path and
    rsvg_handle_new_from_stream_sync rather than the
    deprecated-in-2.45 rsvg_handle_write and rsvg_handle_close.
    From a patch by YAMAMOTO Mitsuharu (Bug#35548#11).
image.c 279 KB