summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-04-17 04:46:51 +0000
committermental <mental@users.sourceforge.net>2006-04-17 04:46:51 +0000
commit805747f6b136ad2e89f5ca1020ca43506d2b5391 (patch)
treebeded9b49a5f2f5a3ac956ded5604cee5d61cd0c /src/gradient-drag.cpp
parentSP_DT_DOCUMENT -> sp_desktop_document (diff)
downloadinkscape-805747f6b136ad2e89f5ca1020ca43506d2b5391.tar.gz
inkscape-805747f6b136ad2e89f5ca1020ca43506d2b5391.zip
Get rid of the SP_DT_* macros which do nothing more than provide additional, confusing, names for other functions. If shorter names are desired, the actual functions should be renamed -- or better, made into member functions.
(bzr r532)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index 1e8626602..cb61a9890 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -223,7 +223,7 @@ GrDrag::GrDrag(SPDesktop *desktop) {
this->desktop = desktop;
- this->selection = SP_DT_SELECTION(desktop);
+ this->selection = sp_desktop_selection(desktop);
this->draggers = NULL;
this->lines = NULL;
@@ -378,7 +378,7 @@ gr_knot_moved_handler(SPKnot *knot, NR::Point const *ppointer, guint state, gpoi
d_new->updateKnotShape ();
d_new->updateTip ();
d_new->updateDependencies(true);
- sp_document_done (SP_DT_DOCUMENT (d_new->parent->desktop));
+ sp_document_done (sp_desktop_document (d_new->parent->desktop));
return;
}
}
@@ -509,7 +509,7 @@ gr_knot_ungrabbed_handler (SPKnot *knot, unsigned int state, gpointer data)
dragger->updateDependencies(true);
// we did an undoable action
- sp_document_done (SP_DT_DOCUMENT (dragger->parent->desktop));
+ sp_document_done (sp_desktop_document (dragger->parent->desktop));
}
/**
@@ -853,7 +853,7 @@ Create a line from p1 to p2 and add it to the lines list
void
GrDrag::addLine (NR::Point p1, NR::Point p2, guint32 rgba)
{
- SPCanvasItem *line = sp_canvas_item_new(SP_DT_CONTROLS(this->desktop),
+ SPCanvasItem *line = sp_canvas_item_new(sp_desktop_controls(this->desktop),
SP_TYPE_CTRLLINE, NULL);
sp_ctrlline_set_coords(SP_CTRLLINE(line), p1, p2);
if (rgba != GR_LINE_COLOR_FILL) // fill is the default, so don't set color for it to speed up redraw
@@ -1061,7 +1061,7 @@ GrDrag::selected_move (double x, double y)
selected->updateDependencies(true);
// we did an undoable action
- sp_document_done (SP_DT_DOCUMENT (desktop));
+ sp_document_done (sp_desktop_document (desktop));
}
void