diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2009-08-06 14:17:17 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2009-08-06 14:17:17 +0000 |
| commit | 51c2905fd3e99955db2d823b79abb763d8097028 (patch) | |
| tree | 90128509479f5498e1125d1e4eb9cdc05bf6b6e6 /src/gradient-chemistry.cpp | |
| parent | Adding one more control to Smart Jelly (diff) | |
| download | inkscape-51c2905fd3e99955db2d823b79abb763d8097028.tar.gz inkscape-51c2905fd3e99955db2d823b79abb763d8097028.zip | |
Revert recent refactoring changes by johnce because they break the build, which cannot be fixed easily.
(bzr r8422)
Diffstat (limited to 'src/gradient-chemistry.cpp')
| -rw-r--r-- | src/gradient-chemistry.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp index 85e4e2c55..4abd7483f 100644 --- a/src/gradient-chemistry.cpp +++ b/src/gradient-chemistry.cpp @@ -92,7 +92,7 @@ sp_gradient_ensure_vector_normalized(SPGradient *gr) */ static SPGradient * -sp_gradient_get_private_normalized(Document *document, SPGradient *vector, SPGradientType type) +sp_gradient_get_private_normalized(SPDocument *document, SPGradient *vector, SPGradientType type) { g_return_val_if_fail(document != NULL, NULL); g_return_val_if_fail(vector != NULL, NULL); @@ -199,7 +199,7 @@ sp_gradient_fork_private_if_necessary(SPGradient *gr, SPGradient *vector, return gr; } - Document *doc = SP_OBJECT_DOCUMENT(gr); + SPDocument *doc = SP_OBJECT_DOCUMENT(gr); SPObject *defs = SP_DOCUMENT_DEFS(doc); if ((gr->has_stops) || @@ -245,7 +245,7 @@ sp_gradient_fork_vector_if_necessary (SPGradient *gr) return gr; if (SP_OBJECT_HREFCOUNT(gr) > 1) { - Document *doc = SP_OBJECT_DOCUMENT(gr); + SPDocument *doc = SP_OBJECT_DOCUMENT(gr); Inkscape::XML::Document *xml_doc = sp_document_repr_doc(doc); Inkscape::XML::Node *repr = SP_OBJECT_REPR (gr)->duplicate(xml_doc); @@ -1210,7 +1210,7 @@ sp_gradient_repr_set_link(Inkscape::XML::Node *repr, SPGradient *link) */ SPGradient * -sp_document_default_gradient_vector(Document *document, guint32 color) +sp_document_default_gradient_vector(SPDocument *document, guint32 color) { SPDefs *defs = (SPDefs *) SP_DOCUMENT_DEFS(document); Inkscape::XML::Document *xml_doc = sp_document_repr_doc(document); @@ -1271,7 +1271,7 @@ Return the preferred vector for \a o, made from (in order of preference) its cur current fill or stroke color, or from desktop style if \a o is NULL or doesn't have style. */ SPGradient * -sp_gradient_vector_for_object(Document *const doc, SPDesktop *const desktop, +sp_gradient_vector_for_object(SPDocument *const doc, SPDesktop *const desktop, SPObject *const o, bool const is_fill) { guint32 rgba = 0; |
