[BZ#764610] API: librsvg should provide a way to list sub element IDs
Submitted by Tim Janik
Link to original bug (#764610)
Description
Created attachment 325377 Add rsvg_handle_list() to gather sub element IDs
The Rapicorn project has been shipping a modified version of librsvg for a long time. One of the reasons is the lack of an ability to list the sub element IDs of an SVG file to use exiting APIs correctly, like: rsvg_handle_render_cairo_sub() rsvg_handle_get_pixbuf_sub() rsvg_handle_get_dimensions_sub() rsvg_handle_get_position_sub()
I'd suggest adding an API like GSList* rsvg_handle_list (RsvgHandle *handle); to fix this situation. An example patch is attached.
Patch 325377, "Add rsvg_handle_list() to gather sub element IDs":
0001-Add-rsvg_handle_list-to-gather-sub-element-IDs.patch