summaryrefslogtreecommitdiffstats
path: root/src/arc-context.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/arc-context.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/arc-context.cpp')
-rw-r--r--src/arc-context.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arc-context.cpp b/src/arc-context.cpp
index 10e38ee9a..8bee7fe02 100644
--- a/src/arc-context.cpp
+++ b/src/arc-context.cpp
@@ -184,7 +184,7 @@ void sp_arc_context_selection_changed(Inkscape::Selection * selection, gpointer
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);
@@ -247,7 +247,7 @@ static gint sp_arc_context_root_handler(SPEventContext *event_context, GdkEvent
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);
@@ -345,7 +345,7 @@ static gint sp_arc_context_root_handler(SPEventContext *event_context, GdkEvent
}
break;
case GDK_Escape:
- SP_DT_SELECTION(desktop)->clear();
+ sp_desktop_selection(desktop)->clear();
//TODO: make dragging escapable by Esc
default:
break;
@@ -425,8 +425,8 @@ static void sp_arc_finish(SPArcContext *ac)
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;
}