From: mental Date: Sun, 21 Jan 2007 18:52:00 +0000 (+0000) Subject: Deprecate sp_repr_new* functions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=12d4aaff1a54afabd521198cd58cfb4fdc42b24a;p=inkscape.git Deprecate sp_repr_new* functions --- diff --git a/src/xml/repr.h b/src/xml/repr.h index f930ed0c5..ac7ca3218 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -105,7 +105,7 @@ * * \arg * Q: How do I create a new Inkscape::XML::Node?
- * A: Use "sp_repr_new*". Then attach it to a parent somewhere with + * A: Use the appropriate create* method on Inkscape::XML::Document, * parent->appendChild(child), and then use Inkscape::GC::release(child) to * let go of it (the parent will hold it in memory). * @@ -131,9 +131,10 @@ char const *sp_xml_ns_uri_prefix(gchar const *uri, gchar const *suggested); char const *sp_xml_ns_prefix_uri(gchar const *prefix); -Inkscape::XML::Node *sp_repr_new(gchar const *name); -Inkscape::XML::Node *sp_repr_new_text(gchar const *content); -Inkscape::XML::Node *sp_repr_new_comment(gchar const *comment); +/* replaced by create* methods on Inkscape::XML::Document */ +Inkscape::XML::Node *sp_repr_new(gchar const *name) __attribute__ ((deprecated)); +Inkscape::XML::Node *sp_repr_new_text(gchar const *content) __attribute__ ((deprecated)); +Inkscape::XML::Node *sp_repr_new_comment(gchar const *comment) __attribute__ ((deprecated)); /*inline Inkscape::XML::Node *sp_repr_duplicate(Inkscape::XML::Node const *repr) { return repr->duplicate();