summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorJoshua L. Blocher <verbalshadow@gmail.com>2008-12-05 22:40:41 +0000
committerverbalshadow <verbalshadow@users.sourceforge.net>2008-12-05 22:40:41 +0000
commit856d8eb8210879d4a4e86f00bf1c332395428039 (patch)
tree73708e7e8b6c53a5d5e1bf5af774d9f79b47b553 /src/rect-context.cpp
parent2geom more as fix (diff)
downloadinkscape-856d8eb8210879d4a4e86f00bf1c332395428039.tar.gz
inkscape-856d8eb8210879d4a4e86f00bf1c332395428039.zip
NR -> 2Geom few more files
(bzr r6959)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index 93e7e8470..5d2a353d9 100644
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -54,7 +54,7 @@ static void sp_rect_context_set(SPEventContext *ec, Inkscape::Preferences::Entry
static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent *event);
static gint sp_rect_context_item_handler(SPEventContext *event_context, SPItem *item, GdkEvent *event);
-static void sp_rect_drag(SPRectContext &rc, NR::Point const pt, guint state);
+static void sp_rect_drag(SPRectContext &rc, Geom::Point const pt, guint state);
static void sp_rect_finish(SPRectContext *rc);
static SPEventContextClass *parent_class;
@@ -285,12 +285,12 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
switch (event->type) {
case GDK_BUTTON_PRESS:
if (event->button.button == 1 && !event_context->space_panning) {
- NR::Point const button_w(event->button.x,
+ Geom::Point const button_w(event->button.x,
event->button.y);
// save drag origin
- event_context->xp = (gint) button_w[NR::X];
- event_context->yp = (gint) button_w[NR::Y];
+ event_context->xp = (gint) button_w[Geom::X];
+ event_context->yp = (gint) button_w[Geom::Y];
event_context->within_tolerance = true;
// remember clicked item, disregarding groups, honoring Alt
@@ -333,8 +333,8 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
// motion notify coordinates as given (no snapping back to origin)
event_context->within_tolerance = false;
- NR::Point const motion_w(event->motion.x, event->motion.y);
- NR::Point motion_dt(desktop->w2d(motion_w));
+ Geom::Point const motion_w(event->motion.x, event->motion.y);
+ Geom::Point motion_dt(desktop->w2d(motion_w));
sp_rect_drag(*rc, motion_dt, event->motion.state); // this will also handle the snapping
gobble_motion_events(GDK_BUTTON1_MASK);
@@ -460,7 +460,7 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
return ret;
}
-static void sp_rect_drag(SPRectContext &rc, NR::Point const pt, guint state)
+static void sp_rect_drag(SPRectContext &rc, Geom::Point const pt, guint state)
{
SPDesktop *desktop = SP_EVENT_CONTEXT(&rc)->desktop;