summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-03-03 21:48:03 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-03-03 21:48:03 +0000
commitcaf86ff808895fdb7808e2a2f56d1fef94c5aead (patch)
treea16ee884111d8fca9a0aae4ecf233ecb96f13217 /src
parent* [INTL: ar, eu, sk] Merging back patch for various languages from branch (diff)
downloadinkscape-caf86ff808895fdb7808e2a2f56d1fef94c5aead.tar.gz
inkscape-caf86ff808895fdb7808e2a2f56d1fef94c5aead.zip
new: guide snapping indicator! see if you like it, comments are always welcome!
(bzr r4945)
Diffstat (limited to 'src')
-rw-r--r--src/desktop-events.cpp4
-rw-r--r--src/display/snap-indicator.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index e115a744a..dc153e31d 100644
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
@@ -152,6 +152,8 @@ static gint sp_dt_ruler_event(GtkWidget *widget, GdkEvent *event, SPDesktopWidge
if (snappoint.getDistance() < NR_HUGE) {
desktop->snapindicator->set_new_snappoint(snappoint.getPoint().to_2geom());
+ } else {
+ desktop->snapindicator->remove_snappoint();
}
}
break;
@@ -254,6 +256,8 @@ gint sp_dt_guide_event(SPCanvasItem *item, GdkEvent *event, gpointer data)
if (snappoint.getDistance() < NR_HUGE) {
desktop->snapindicator->set_new_snappoint(snappoint.getPoint().to_2geom());
+ } else {
+ desktop->snapindicator->remove_snappoint();
}
ret = TRUE;
diff --git a/src/display/snap-indicator.cpp b/src/display/snap-indicator.cpp
index 1d005ceb8..ba9c10ef2 100644
--- a/src/display/snap-indicator.cpp
+++ b/src/display/snap-indicator.cpp
@@ -48,7 +48,7 @@ SnapIndicator::set_new_snappoint(Geom::Point p)
"shape", SP_KNOT_SHAPE_CROSS,
NULL );
SP_CTRL(canvasitem)->moveto ( p );
- tempitem = desktop->add_temporary_canvasitem(canvasitem, 2000);
+ tempitem = desktop->add_temporary_canvasitem(canvasitem, 1000);
}
void