diff --git a/src/selcue.cpp b/src/selcue.cpp
index 426422fc9eb624a5dbdc20744494cb3d7feb9516..6d365659206749a1101673d513b85ae1bad81f81 100644 (file)
--- a/src/selcue.cpp
+++ b/src/selcue.cpp
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))
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,
} else if (mode == BBOX) {
box = sp_canvas_item_new(
- SP_DT_CONTROLS(_desktop),
+ sp_desktop_controls(_desktop),
SP_TYPE_CTRLRECT,
NULL
);
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,