GNOME Bugzilla – Bug 567070
need function to check whether an elemend ID exists
Last modified: 2011-04-16 20:02:16 UTC
I need a function to check whether an element with a given ID exists in the document in a RsvgHandle. My use case for this is aisleriot's KDE card theme support code, where I check whether the SVG has the whole set of cards or is missing some of them (some KDE themes have e.g. just one joker instead of #{black,red}_joker elements, or #back{red,blue,...} variants but no #back itself.) So: gboolean rsvg_handle_has_sub (RsvgHandle *handle, const char *id). Not sure about that name... rsvg_handle_has_element_by_id() maybe? get_has_element_by_id()? ....
Created attachment 126051 [details] [review] [PATCH] Bug 567070 – need function to check whether an elemend ID exists doc/rsvg-sections.txt | 1 + librsvg.def | 1 + rsvg-base.c | 24 ++++++++++++++++++++++++ rsvg.h | 2 ++ 4 files changed, 28 insertions(+), 0 deletions(-)
Patch approved
Committed; thanks!