diff --git a/src/arc-context.cpp b/src/arc-context.cpp
index 10e38ee9a64473cf023854c062e125220851439f..8bee7fe028803b41f1597a185ed70b0654445d7f 100644 (file)
--- a/src/arc-context.cpp
+++ b/src/arc-context.cpp
static void sp_arc_context_setup(SPEventContext *ec)
{
SPArcContext *ac = SP_ARC_CONTEXT(ec);
- Inkscape::Selection *selection = SP_DT_SELECTION(ec->desktop);
+ Inkscape::Selection *selection = sp_desktop_selection(ec->desktop);
if (((SPEventContextClass *) parent_class)->setup) {
((SPEventContextClass *) parent_class)->setup(ec);
static bool dragging;
SPDesktop *desktop = event_context->desktop;
- Inkscape::Selection *selection = SP_DT_SELECTION(desktop);
+ Inkscape::Selection *selection = sp_desktop_selection(desktop);
SPArcContext *ac = SP_ARC_CONTEXT(event_context);
event_context->tolerance = prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100);
}
break;
case GDK_Escape:
- SP_DT_SELECTION(desktop)->clear();
+ sp_desktop_selection(desktop)->clear();
//TODO: make dragging escapable by Esc
default:
break;
SP_OBJECT(ac->item)->updateRepr();
- SP_DT_SELECTION(desktop)->set(ac->item);
- sp_document_done(SP_DT_DOCUMENT(desktop));
+ sp_desktop_selection(desktop)->set(ac->item);
+ sp_document_done(sp_desktop_document(desktop));
ac->item = NULL;
}