diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-04-07 23:42:04 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2011-04-07 23:42:04 +0000 |
| commit | 945ce419c806c73d70203dec33ececafbe108a92 (patch) | |
| tree | cfcdb59bf47e9db7f9e01f7eebb59924bdeaea94 /src/gradient-context.cpp | |
| parent | Merge from trunk (again) (diff) | |
| parent | Extensions. SVG+media fix (see Bug #400356). (diff) | |
| download | inkscape-945ce419c806c73d70203dec33ececafbe108a92.tar.gz inkscape-945ce419c806c73d70203dec33ececafbe108a92.zip | |
Merge from trunk
(bzr r9508.1.73)
Diffstat (limited to 'src/gradient-context.cpp')
| -rw-r--r-- | src/gradient-context.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp index 768370509..bfd1047f1 100644 --- a/src/gradient-context.cpp +++ b/src/gradient-context.cpp @@ -378,9 +378,9 @@ sp_gradient_context_add_stops_between_selected_stops (SPGradientContext *rc) SPStop *this_stop = (SPStop *) i->data; SPStop *next_stop = (SPStop *) j->data; gfloat offset = 0.5*(this_stop->offset + next_stop->offset); - SPObject *parent = SP_OBJECT_PARENT(this_stop); + SPObject *parent = this_stop->parent; if (SP_IS_GRADIENT (parent)) { - doc = SP_OBJECT_DOCUMENT (parent); + doc = parent->document; sp_vector_add_stop (SP_GRADIENT (parent), this_stop, next_stop, offset); SP_GRADIENT(parent)->ensureVector(); } @@ -449,9 +449,9 @@ sp_gradient_simplify(SPGradientContext *rc, double tolerance) for (i = todel; i != NULL; i = i->next) { SPStop *stop = (SPStop*) i->data; - doc = SP_OBJECT_DOCUMENT (stop); - Inkscape::XML::Node * parent = SP_OBJECT_REPR(stop)->parent(); - parent->removeChild(SP_OBJECT_REPR(stop)); + doc = stop->document; + Inkscape::XML::Node * parent = stop->getRepr()->parent(); + parent->removeChild( stop->getRepr() ); } if (g_slist_length(todel) > 0) { @@ -525,7 +525,7 @@ sp_gradient_context_root_handler(SPEventContext *event_context, GdkEvent *event) SPGradientType new_type = (SPGradientType) prefs->getInt("/tools/gradient/newgradient", SP_GRADIENT_TYPE_LINEAR); guint new_fill = prefs->getInt("/tools/gradient/newfillorstroke", 1); - SPGradient *vector = sp_gradient_vector_for_object(sp_desktop_document(desktop), desktop, SP_OBJECT (item), new_fill); + SPGradient *vector = sp_gradient_vector_for_object(sp_desktop_document(desktop), desktop, item, new_fill); SPGradient *priv = sp_item_set_gradient(item, vector, new_type, new_fill); sp_gradient_reset_to_userspace(priv, item); @@ -903,7 +903,7 @@ static void sp_gradient_drag(SPGradientContext &rc, Geom::Point const pt, guint for (GSList const *i = selection->itemList(); i != NULL; i = i->next) { //FIXME: see above - sp_repr_css_change_recursive(SP_OBJECT_REPR(i->data), css, "style"); + sp_repr_css_change_recursive(SP_OBJECT(i->data)->getRepr(), css, "style"); sp_item_set_gradient(SP_ITEM(i->data), vector, (SPGradientType) type, fill_or_stroke); @@ -914,7 +914,7 @@ static void sp_gradient_drag(SPGradientContext &rc, Geom::Point const pt, guint sp_item_gradient_set_coords (SP_ITEM(i->data), POINT_RG_CENTER, 0, rc.origin, fill_or_stroke, true, false); sp_item_gradient_set_coords (SP_ITEM(i->data), POINT_RG_R1, 0, pt, fill_or_stroke, true, false); } - SP_OBJECT (i->data)->requestModified(SP_OBJECT_MODIFIED_FLAG); + SP_OBJECT(i->data)->requestModified(SP_OBJECT_MODIFIED_FLAG); } if (ec->_grdrag) { ec->_grdrag->updateDraggers(); |
