diff options
| author | MenTaLguY <mental@rydia.net> | 2008-05-08 13:05:51 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2008-05-08 13:05:51 +0000 |
| commit | 8b71ee28d6d834eacf8853822b7c667f5c8eb21f (patch) | |
| tree | 0a9db9f3c5fc645f4d9a2746f1d020882cd5db33 /src/xml | |
| parent | set eol-style:native for newly added files (diff) | |
| download | inkscape-8b71ee28d6d834eacf8853822b7c667f5c8eb21f.tar.gz inkscape-8b71ee28d6d834eacf8853822b7c667f5c8eb21f.zip | |
merge inline patch from Jimmy
(bzr r5631)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr-css.cpp | 6 | ||||
| -rw-r--r-- | src/xml/repr.h | 8 |
2 files changed, 3 insertions, 11 deletions
diff --git a/src/xml/repr-css.cpp b/src/xml/repr-css.cpp index afa0ca2ef..888250c40 100644 --- a/src/xml/repr-css.cpp +++ b/src/xml/repr-css.cpp @@ -120,7 +120,7 @@ sp_repr_css_set_property(SPCSSAttr *css, gchar const *name, gchar const *value) g_assert(css != NULL); g_assert(name != NULL); - sp_repr_set_attr((Node *) css, name, value); + ((Node *) css)->setAttribute(name, value, false); } void @@ -129,7 +129,7 @@ sp_repr_css_unset_property(SPCSSAttr *css, gchar const *name) g_assert(css != NULL); g_assert(name != NULL); - sp_repr_set_attr((Node *) css, name, "inkscape:unset"); + ((Node *) css)->setAttribute(name, "inkscape:unset", false); } double @@ -219,7 +219,7 @@ sp_repr_css_merge_from_decl(SPCSSAttr *css, CRDeclaration const *const decl) guchar *const str_value_unsigned = cr_term_to_string(decl->value); gchar *const str_value = reinterpret_cast<gchar *>(str_value_unsigned); gchar *value_unquoted = attribute_unquote (str_value); // libcroco returns strings quoted in "" - sp_repr_set_attr((Node *) css, decl->property->stryng->str, value_unquoted); + ((Node *) css)->setAttribute(decl->property->stryng->str, value_unquoted, false); g_free(value_unquoted); g_free(str_value); } diff --git a/src/xml/repr.h b/src/xml/repr.h index 67616df29..162451a0f 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -140,14 +140,6 @@ char const *sp_xml_ns_prefix_uri(gchar const *prefix); Inkscape::XML::Document *sp_repr_document_new(gchar const *rootname); -/* Contents */ -/// Sets the node's \a key attribute to \a value. -inline unsigned sp_repr_set_attr(Inkscape::XML::Node *repr, gchar const *key, gchar const *value, - bool is_interactive = false) { - repr->setAttribute(key, value, is_interactive); - return true; -} - /* Tree */ /// Returns the node's parent. inline Inkscape::XML::Node *sp_repr_parent(Inkscape::XML::Node const *repr) { |
