summaryrefslogtreecommitdiffstats
path: root/src/selcue.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/selcue.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/selcue.cpp')
-rw-r--r--src/selcue.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/selcue.cpp b/src/selcue.cpp
index 426422fc9..6d3656592 100644
--- a/src/selcue.cpp
+++ b/src/selcue.cpp
@@ -27,7 +27,7 @@
Inkscape::SelCue::SelCue(SPDesktop *desktop)
: _desktop(desktop)
{
- _selection = SP_DT_SELECTION(_desktop);
+ _selection = sp_desktop_selection(_desktop);
_sel_changed_connection = _selection->connectChanged(
sigc::hide(sigc::mem_fun(*this, &Inkscape::SelCue::_updateItemBboxes))
@@ -83,7 +83,7 @@ void Inkscape::SelCue::_updateItemBboxes()
SPCanvasItem* box = NULL;
if (mode == MARK) {
- box = sp_canvas_item_new(SP_DT_CONTROLS(_desktop),
+ box = sp_canvas_item_new(sp_desktop_controls(_desktop),
SP_TYPE_CTRL,
"mode", SP_CTRL_MODE_XOR,
"shape", SP_CTRL_SHAPE_DIAMOND,
@@ -100,7 +100,7 @@ void Inkscape::SelCue::_updateItemBboxes()
} else if (mode == BBOX) {
box = sp_canvas_item_new(
- SP_DT_CONTROLS(_desktop),
+ sp_desktop_controls(_desktop),
SP_TYPE_CTRLRECT,
NULL
);
@@ -121,7 +121,7 @@ void Inkscape::SelCue::_updateItemBboxes()
Inkscape::Text::Layout const *layout = te_get_layout(item);
if (layout != NULL) {
NR::Point a = layout->characterAnchorPoint(layout->begin()) * sp_item_i2d_affine(item);
- baseline_point = sp_canvas_item_new(SP_DT_CONTROLS(_desktop), SP_TYPE_CTRL,
+ baseline_point = sp_canvas_item_new(sp_desktop_controls(_desktop), SP_TYPE_CTRL,
"mode", SP_CTRL_MODE_XOR,
"size", 4.0,
"filled", 0,